Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Paolo_R on May 12, 2009, 12:29:15 am

Title: Installing new compilers
Post by: Paolo_R 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.
Title: Re: Installing new compilers
Post by: richard_moffitt 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.
Title: Re: Installing new compilers
Post by: stahta01 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



Title: Re: Installing new compilers
Post by: Paolo_R 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




Title: Re: Installing new compilers
Post by: stahta01 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