Author Topic: Code Blocks not using selected compiler.  (Read 6178 times)

Offline eb

  • Multiple posting newcomer
  • *
  • Posts: 46
Code Blocks not using selected compiler.
« on: February 09, 2012, 10:50:37 pm »
I was using the cygwin g++-3 compiler but switched to the MinGW g++ compiler in the toolchain HOWEVER cygwin is still using the G++-3 compiler:


-------------- Clean: Release in rap00 ---------------

Cleaned "rap00 - Release"

-------------- Build: Release in rap00 ---------------

gcc-3.exe -Wall  -O2    -IC:/MinGW/include -IC:/cygwin/home/eb/rap00 -IC:/cygwin/home/eb/rap00 -c C:/cygwin/home/eb/rap00/main.c -o obj/Release/main.o
 How do I fix this?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Code Blocks not using selected compiler.
« Reply #1 on: February 09, 2012, 11:01:03 pm »
Please explain what have you done, exactly.
Also I doubt cygwin could use the mingw compiler.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline eb

  • Multiple posting newcomer
  • *
  • Posts: 46
Re: Code Blocks not using selected compiler.
« Reply #2 on: February 09, 2012, 11:06:10 pm »
There are a few websites that say you can use the MinGW compiler with Cygwin.
My problem is when I try to use a different set of settings (linked libraries, search directories) from project to project the new settings fail to take.

I am using CodeBlocks 10.05 on Windows XP 64bit.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Code Blocks not using selected compiler.
« Reply #3 on: February 10, 2012, 01:00:51 am »
OK, Keep not explaining your exact problem and then keep waiting for someone to help you.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline eb

  • Multiple posting newcomer
  • *
  • Posts: 46
Re: Code Blocks not using selected compiler.
« Reply #4 on: February 10, 2012, 02:48:03 am »
When I open CodeBlocks and go to Compiler and debugger settings the Selected compiler is Cygwin GCC.
I change the selected compiler to one I created called MinGW GCC for rap01.
I hit OK.
I go DIRECTLY back to Compiler and debugger settings and the Selected compiler is back to Cygwin GCC.
I change the selected compiler back to MinGW GCC for rap01 and hit Set as default and OK and the setting sticks but NOW it's the default compiler for all new projects. 
I just need it as the compiler for this project.

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Code Blocks not using selected compiler.
« Reply #5 on: February 10, 2012, 02:51:51 am »
I just need it as the compiler for this project.
Project->Build options...->Selected compiler