Author Topic: Bugs on various GCC selection  (Read 7094 times)

Offline kimi67300387@qq.com

  • Single posting newcomer
  • *
  • Posts: 3
Bugs on various GCC selection
« 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Bugs on various GCC selection
« Reply #1 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
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Bugs on various GCC selection
« Reply #2 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.

Offline kimi67300387@qq.com

  • Single posting newcomer
  • *
  • Posts: 3
Re: Bugs on various GCC selection
« Reply #3 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

Offline kimi67300387@qq.com

  • Single posting newcomer
  • *
  • Posts: 3
Re: Bugs on various GCC selection
« Reply #4 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