News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Bugs on various GCC selection

Started by kimi67300387@qq.com, April 06, 2009, 05:34:49 AM

Previous topic - Next topic

kimi67300387@qq.com

I am testing various c++ compilers, so there are cygwin, mingw-3.3.5, mingw-4.2, mingw-4.3, tdm-mingw-4.3 ... on my machine.
When I compile something, regardless of the selection of compiler in my project, gcc or g++, which resides in the first directory in $PATH, is invoked.
I tried to read the source, but i couldn't find where to execute the compiler now. I suggest a absolute path be used rather than a relative one.

Help me! Thanks all! :D

stahta01

Remove all the GCC Compilers from the Path System variable;
Make sure there is no X:\MinGW folder where X is any drive on your computer.

The above works for me under Windows XP.

Then try it again.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Jenna

Quote from: kimi67300387@qq.com on April 06, 2009, 05:34:49 AM
I am testing various c++ compilers, so there are cygwin, mingw-3.3.5, mingw-4.2, mingw-4.3, tdm-mingw-4.3 ... on my machine.
When I compile something, regardless of the selection of compiler in my project, gcc or g++, which resides in the first directory in $PATH, is invoked.
I tried to read the source, but i couldn't find where to execute the compiler now. I suggest a absolute path be used rather than a relative one.

Help me! Thanks all! :D
Which version of C::B do you use ?

If you use a recent nightly and the toolchainis setup correctly, it should work without this issue, because the compilers installation path you have configured in toolchain executables tab is prepended to the system-path.

kimi67300387@qq.com

Quote from: stahta01 on April 06, 2009, 06:27:53 AM
Remove all the GCC Compilers from the Path System variable;
Make sure there is no X:\MinGW folder where X is any drive on your computer.

The above works for me under Windows XP.

Then try it again.

Tim S
yes, it is fine, now.
thanks

kimi67300387@qq.com

Quote from: jens on April 06, 2009, 06:43:44 AM
Quote from: kimi67300387@qq.com on April 06, 2009, 05:34:49 AM
I am testing various c++ compilers, so there are cygwin, mingw-3.3.5, mingw-4.2, mingw-4.3, tdm-mingw-4.3 ... on my machine.
When I compile something, regardless of the selection of compiler in my project, gcc or g++, which resides in the first directory in $PATH, is invoked.
I tried to read the source, but i couldn't find where to execute the compiler now. I suggest a absolute path be used rather than a relative one.

Help me! Thanks all! :D
Which version of C::B do you use ?

If you use a recent nightly and the toolchainis setup correctly, it should work without this issue, because the compilers installation path you have configured in toolchain executables tab is prepended to the system-path.

Release 8.02 (2008-02-27 19:55:16) gcc 4.2.1 Windows/unicode

I will try a nigthly version instead.Thanks