MinGW on Vista [message #203759] |
Sun, 28 October 2007 16:23  |
Eclipse User |
|
|
|
Hi,
I tried to install eclipse with CDT on Windows Vista64, it works. I also
was able to install and use MinGW. Know, if I try to build a project, I
get an error like:
**** Rebuild of configuration Release for project cabbage++ ****
**** Internal Builder is used for build ****
g++ -O0 -c -omain.o ..\main.cpp
Internal Builder: Exec error:Das System kann die angegebene Datei nicht
finden.
Build error occurred, build is stopped
Time consumed: 3 ms.
It says that some of the files cannot be found. But which? And, more
strange: If I copy the g++-command and paste it to a command line in
%Project path%\Release, it works without problems.
So, there seems to be a problem in CDT's calling mechanism on vista - may
that be?
|
|
|
|
|
|
|
|
Re: MinGW on Vista [message #204107 is a reply to message #203795] |
Mon, 05 November 2007 12:42  |
Eclipse User |
|
|
|
sorry for the late response, but I had no earlier chance to try your hint
on a Vista environment.
With these steps, I was able to make the mingw32-* programs work (e.g.
mingw32-g++, mingw32-gcc ...), thanks.
But with eclipse, it does not change anything
This is my log:
**** Rebuild of configuration release for project cabb ****
**** Internal Builder is used for build ****
c:\mingw\bin\g++ -IC:\MinGW\include\c++\3.4.5 -O0 -Wall -c -v -ocabb.o
..\cabb.cpp
Internal Builder: Exec error: Das System kann die angegebene Datei nicht
finden.
Build error occurred, build is stopped
Time consumed: 3 ms.
****
"Das System kann die angegebene Datei nicht finden." means that the
specified file cannot be found -- er, which file!?
I get the same error with mingw32-g++
If I use an external make tool (mingw32-make) and not the internal CDT
builder, I can compiler from my system command line with a simple
make-call - isn't it the same thing cdt should call (or maybe with target
specification)?
******************
Jason Cavett wrote:
> Fabian Lenzen wrote:
>> Thanks, I'll have a look. The problem is not on my machine ;)
>> Can you call MinGW from within Eclipse/CDT, or did you call it from
>> console?
>> Jason Cavett wrote:
>>> Take a look at this site. I just installed MinGW on a Vista machine last
>>> night and this solved any issues I had been having.
>>> http://aarongiles.com/?p=199
>>> A few points:
>>> 1. Set the environment variable GCC_EXEC_PREFIX to point to the root of
>>> your mingw install.
>>> 2. Add %GCC_EXEC_PREFIX%libexecgccmingw323.4.2 to your search PATH.
>>> 3. Replace the sh.exe in mingw/bin with the version here (see website).
>>> 4. You must install to your root directory! I could not get MinGW to work
>>> until I did this. (So, C:MinGW works, but C:Program FilesMinGW didn't.)
>>> Also, I did not need to do step 3. Might be due to my lack of
>>> understanding, but as of right now, my code is compiling.
> I can use MinGW directly from Eclipse. (I am having other problems with
> MinGW, but not due to using it in a Vista environment.)
|
|
|
Powered by
FUDForum. Page generated in 0.04582 seconds