I'm using codelite 8.0 on windows 7 and want to change the compiler to clang. I installed clang 3.6.1 compiler on windows and added it to codelite with the Build Settings. When I create a new clang project the examples compile and run but when I include string for example I got "undefined reference to '_Unwind_Resume'" errors from the linker.
So I built llvm with clang myself with MinGW 4.9.2 and it works just fine when I use it from the command line, it compiles and runs. However when I add my clang to codelite I get the same output for anything written in the source file at all:
I get the same result when I hotswap the clang++.exe from the installed clang with my own clang++.exe. From undefined reference to this output and I can't tell where it's failing exactly. Any clue what I'm doing wrong?
Last edited by member7 on Tue Jun 23, 2015 1:18 pm, edited 1 time in total.
Try running CodeLite's command manually (from a CMD shell)
Sometimes, the CMD in the middle hides dialog boxes with error messages
The error you are getting is usually because exception support in clang for Windows is poor
Disclaimer: this was the case in clang 3.5, I don't know how far it got improved with 3.6...
I played around with it for a bit. When I try to run the command in the shell I get the same output in all 3 cases; using mingw 4.9.2 which builds properly in codelite, clang with undefined references and clang which doesn't build. I configured my project and let codelite generate the makefile and called the same command each time but the output is the same:
Please paste your environment variables from: settings->environment variables
makedir is installed under the same folder as CodeLite so it should be available, unless you tempered with the environment variabels
Within codelite makedir seems to work but when using the shell to test the command I get the makedir can't be found. Would I have to add makedir to the windows environment to run the command from the shell?
eranif wrote:Yes, CodeLite does not modify your system settings.
Eran
I managed to compile it when I removed code::blocks and removed a second codelite (an older version) folder from my machine.
Using "Scan computer for installed compilers" in the Build Settings crashed codelite for me with another codelite folder on the system.
I get the same compiler errors with my build but thanks to your hint I got it to compiler with the -fno-exceptions flag. I love asking questions here because you are so very helpful, thanks.