Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: sobank on November 27, 2006, 02:27:23 am

Title: How to change compilers
Post by: sobank on November 27, 2006, 02:27:23 am
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?
Title: Re: How to change compilers
Post by: stahta01 on November 27, 2006, 03:12:53 am
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
Title: Re: How to change compilers
Post by: sobank on November 27, 2006, 09:33:33 am
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.