Author Topic: Code::Blocks 10.05 and LLVM Compiler  (Read 4185 times)

Offline afflyer

  • Single posting newcomer
  • *
  • Posts: 2
Code::Blocks 10.05 and LLVM Compiler
« 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?


Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Code::Blocks 10.05 and LLVM Compiler
« Reply #1 on: October 09, 2010, 11:50:09 am »
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.

Offline afflyer

  • Single posting newcomer
  • *
  • Posts: 2
Re: Code::Blocks 10.05 and LLVM Compiler
« Reply #2 on: October 09, 2010, 12:09:21 pm »
Hello,

thanks for the quick reply. I will test this.