Page 1 of 1

C ++ Compiler

Posted: Thu Sep 03, 2015 3:38 pm
by Gui
I'm unable to compile my project, i have visual c++ express 2010 on my computer and i want use your compiler.
After scan and select the compiler what others manual settings i need to do for compile properly my file?


Sorry for wrong section'

Re: C ++ Compiler

Posted: Thu Sep 03, 2015 4:37 pm
by eranif
You have 2 options here:

1. Install MinGW and use it
2. Install MinGW and keep using your VC++ compiler

The advantage of the first approach is that CodeLite is built to work with GNU/CLANG and less with MS Studio compilers
e.g. if you choose to use VC++, you won't be able to debug your code via CodeLite


Re: C ++ Compiler

Posted: Thu Sep 03, 2015 8:17 pm
by Gui
Yeah it worked with MinGW compiler, i have some others questions:

The dll file was compiled as 64-bit, how I can change it to 32bit?
The file size Increase of 50 kbs to 2.6MB is this normal?

About visual c ++ i receive this can not include windows.h no such file ..

Thanks man :)

Re: C ++ Compiler

Posted: Fri Sep 04, 2015 1:53 am
by Gibbon1
Under settings->build settings... advanced tab there is an entry for include path. Might try adding the path to windows.h there.

(unsure, usually gcc knows the relative path to it's standard headers, perhaps vc++ doesn't)

Re: C ++ Compiler

Posted: Fri Sep 04, 2015 12:26 pm
by Jarod42
Visual uses some environments to set its search path (thanks to something like "%VS120COMNTOOLS%vsvars32.bat")
You have to call it before launching Codelite,
or add correct environment inside Codelite (Ctrl+Shift+V).