Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: kimi67300387@qq.com on April 06, 2009, 05:34:49 am

Title: Bugs on various GCC selection
Post by: 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
Title: Re: Bugs on various GCC selection
Post by: 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
Title: Re: Bugs on various GCC selection
Post by: Jenna on April 06, 2009, 06:43:44 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.
Title: Re: Bugs on various GCC selection
Post by: kimi67300387@qq.com on April 06, 2009, 08:23:49 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
Title: Re: Bugs on various GCC selection
Post by: kimi67300387@qq.com on April 06, 2009, 11:06:08 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