Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » MinGW on Vista
MinGW on Vista [message #203759] Sun, 28 October 2007 16:23 Go to next message
Eclipse UserFriend
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 #203766 is a reply to message #203759] Sun, 28 October 2007 17:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jason.cavett.gmail.com

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%\libexec\gcc\mingw32\3.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 Files\MinGW 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.
Re: MinGW on Vista [message #203780 is a reply to message #203766] Mon, 29 October 2007 06:48 Go to previous messageGo to next message
Eclipse UserFriend
It is perhaps not necessary to install into root, but rather to avoid
spaces in directory names.

Franz


Jason Cavett schrieb:
> 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%\libexec\gcc\mingw32\3.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 Files\MinGW
> 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.
>
Re: MinGW on Vista [message #203788 is a reply to message #203766] Mon, 29 October 2007 09:13 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: MinGW on Vista [message #203795 is a reply to message #203788] Mon, 29 October 2007 10:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jason.cavett.gmail.com

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.)
Re: MinGW on Vista [message #203802 is a reply to message #203780] Mon, 29 October 2007 10:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jason.cavett.gmail.com

Franz Fehringer wrote:

> It is perhaps not necessary to install into root, but rather to avoid
> spaces in directory names.

> Franz


> Jason Cavett schrieb:
>> 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.
>>

No, you must have MinGW in the root. Spaces do not matter. (See the
link...the author explains that.0
Re: MinGW on Vista [message #204107 is a reply to message #203795] Mon, 05 November 2007 12:42 Go to previous message
Eclipse UserFriend
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.)
Previous Topic:Setup CDT for large scale dev team
Next Topic:Two extending CDT related questions.
Goto Forum:
  


Current Time: Sun Jun 01 06:01:55 EDT 2025

Powered by FUDForum. Page generated in 0.04582 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top