News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How to change compilers

Started by sobank, November 27, 2006, 02:27:23 AM

Previous topic - Next topic

sobank

Hi

I am a new user to code::Blocks. I tried to figure out how to change the compiler for my source code but i cant work it out.

I went into project->compiler options and change the compiler from gcc to borland 5.5 but clicked ok but when i compile it always cimpiles with gcc.

what am i doing wrong here??? is it possible to begin with?

stahta01

#1
The following assumes you are using a project (.cbp file)
Note: I don't use RC2 so no idea if this applies to it.

Project -> "Build Options"
On left hand column select the top item, this should be the project name, with that selected change.
"selected Compiler" to your compiler you wish to use.

if it asks did you wish to use this compiler with all your targets click "Yes"

Do a re-build and see if it worked.

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]

sobank

Thanks for help.

I didnt try your solution but I changed the compiler in builder options under project and then making a clicking a few yes buttons, the compiler did change.