Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: afflyer on October 09, 2010, 11:33:08 am
-
Hello,
we just came across Code::Blocks 10.05 and really like this software. It works perfect under Windows, and we are able to compile our complex C++ project just fine and with only minor adjustments to the code.
I have a question: Code::Blocks uses as the default the MinGW GCC compiler version 4.4.
Is there a way to use the new LLVM compiler version 2.8 instead?
I downloaded the pre compiled LLVM-GCC 4.2 Front End Binaries for Mingw32/x86 and simply extraced everything into the MinGW directory of the Code::Blocks installation. I then changed the compiler C and C++ compiler in the Toolchain settings. The compilation does work, but I do get some strange linker errors. Depending on the compiler settings, I sometimes get strange error during compilation.
Is there anything else that needs to be done to get LLVM 2.8 to work?
-
I do not use llvm, but I gues it can be a problem to mix MinGW and llvm as you did.
A clean way would be to install the llvm compiler in an own directory and add a new compiler (copy GCC toolchain) to use it.
-
Hello,
thanks for the quick reply. I will test this.