Author Topic: How to change compilers  (Read 2594 times)

sobank

  • Guest
How to change compilers
« 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?

Online stahta01

  • Lives here!
  • ****
  • Posts: 6535
    • My Best Post
Re: How to change compilers
« Reply #1 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
« Last Edit: November 27, 2006, 03:15:39 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

sobank

  • Guest
Re: How to change compilers
« Reply #2 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.