Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Bugs on various GCC selection

(1/1)

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

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

--- End quote ---
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

--- End quote ---
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

--- End quote ---
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.

--- End quote ---

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

I will try a nigthly version instead.Thanks

Navigation

[0] Message Index

Go to full version