Author Topic: Installing new compilers  (Read 3912 times)

Offline Paolo_R

  • Single posting newcomer
  • *
  • Posts: 5
Installing new compilers
« on: May 12, 2009, 12:29:15 am »
"Code::Blocks philosophy is to be able to use any compiler on earth! " .... from the FAQ.

So is there a step-by-step guide on how to do this?

I've used other editors where it's fairly straightforward to give command line info for the compile and link phases and I'm guessing there's an equivalent in Code::Blocks.

Any pointers to such info would be appreciated.

richard_moffitt

  • Guest
Re: Installing new compilers
« Reply #1 on: May 12, 2009, 02:35:16 am »
now only if i wish that GCC's philosophy is that GCC is to be used for any platform... oh well :\ Sorry for off-point that i just wish it is being easily compiled for window.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Installing new compilers
« Reply #2 on: May 12, 2009, 03:15:34 am »
Read the wiki
http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler
http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system

Note: Code::Blocks is really only supported for C/C++ and related Languages by the CB Team.

If you have an Open Source and/or Free C/C++ Compiler that Code::Blocks does not work with, please post the Name and how to get Compiler.

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 Paolo_R

  • Single posting newcomer
  • *
  • Posts: 5
Re: Installing new compilers
« Reply #3 on: May 12, 2009, 04:50:29 am »
Tim: I've read the wikis.

The c/c++ compiler(s) I want to use are not free/open source but are not currently supported by Code::Blocks.

What I can't see in the wiki, or in the Compiler/Debugger settings is how - assuming I have configured Code::Blocks for my compiler(s) - I add its name to the list in the list box of supported compilers.

If my command line is '<compiler.exe> /t/e <source.c>' (which for my compiler means : compile/link source.c with debug info) can you tell me what my input to the 'compile single file to object file' would be? (The description is not strictly accurate if I'm producing an .exe file as well as an .obj as a result of the process.)

I guess a follow on to my original question would be : is there an explanation of the macros?

Thanks





Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Installing new compilers
« Reply #4 on: May 12, 2009, 06:21:27 am »
Which Macro?
Read the source code; you are likely going to have to write you own plugin, but that is a guess.
If your C++ Compiler like GCC or some other C++ Compiler supported by Code::Blocks; you might be able to use that plugin.


Edit:

http://wiki.codeblocks.org/index.php?title=Custom_compiler
http://wiki.codeblocks.org/index.php?title=Variable_expansion

Tim S
« Last Edit: May 12, 2009, 06:30:33 am by stahta01 »
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