Page 1 of 2
VC++ complier with Codelite
Posted: Sat Apr 02, 2011 9:34 pm
by mlotfy
May you please list me the steps/settings required to use vc++ compiler with codelite (instead of MinGW).
I have tried but can't get my program compiled.
Thanks
Re: VC++ complier with Codelite
Posted: Sun Apr 03, 2011 8:47 am
by eranif
1) select the VC++ compiler in your project settings General's page
2) Adjust the include path / library path from: Settings | Build Settings | Compilers | VC++ | Advanced
Eran
Re: VC++ complier with Codelite
Posted: Sun Apr 03, 2011 12:23 pm
by mlotfy
I did these steps, but still can't compile, the output of building the application is:
----------Build Started--------
C:\WINDOWS\system32\cmd.exe /c ""mingw32-make.exe" -j 1 -f "test_vc_9_wsp.mk""
----------Building project:[ test_consol_1 - Debug ]----------
mingw32-make.exe[1]: Entering directory `E:/CPPDEV/CodeLite/test_vc_9/test_consol_1'
cl.exe /nologo /c "E:/CPPDEV/CodeLite/test_vc_9/test_consol_1/main.cpp" /Fo./Debug/main.obj "/I"C:/Program Files/Microsoft Visual Studio 9.0/VC/include"" "/I." "/I." "/I."
mingw32-make.exe[1]: *** [Debug/main.obj] Error -1073741515
mingw32-make.exe: *** [All] Error 2
mingw32-make.exe[1]: Leaving directory `E:/CPPDEV/CodeLite/test_vc_9/test_consol_1'
----------Build Ended----------
0 errors, 0 warnings
I already have MSVS installed and running, also I can use code::blocks successfully with vc++.
any suggestion please.
Regards,
M.Lotfy
Re: VC++ complier with Codelite
Posted: Sun Apr 10, 2011 3:35 pm
by mlotfy
Dear Iran
I know you are so busy in many tasks, but I wish you give my complain some interest since I ought to use VC++ complier (to use some 3ed parties lib's) and I don't want to use MSVC IDE and want to make all my work with one IDE, which is Codelite that i comfortable with.
I tried to put the suggested path's but still can't compile my application.
Would you try it yourself and find where the problem is?
I used some other IDE's to compile with either GCC and VC++ (e.g. wxDev, Code::Blocks), and found that their support for deferent compilers are very flexible and very user friendly.
Regards,
m.Lotfy
Re: VC++ complier with Codelite
Posted: Mon Apr 11, 2011 3:48 pm
by GabiLaser
mlotfy wrote:I
----------Build Started--------
C:\WINDOWS\system32\cmd.exe /c ""mingw32-make.exe" -j 1 -f "test_vc_9_wsp.mk""
I *suppose* you didn't specify correctly all the tools for VC - you are still using mingw32-make instead of nmake for example - i just speculate as i don't use VC with CL.
Re: VC++ complier with Codelite
Posted: Mon Apr 11, 2011 9:05 pm
by jfouche
IIRC, you have to start a cmd prompt, and call the vcvarsall.bat (or something like that), which allow you to use the vc compiler. This batch file is somewhere in the VisualStudio installation, under the vc dir (You'll have to find it, I do not have a VS currently).
HTH
Re: VC++ complier with Codelite
Posted: Mon Apr 11, 2011 11:04 pm
by fanhe0513
check this
screenshot1.png
and this
screenshot2.png
Re: VC++ complier with Codelite
Posted: Thu Apr 14, 2011 12:47 pm
by kay
Hi,
I stepped into the same error message some time ago, when I set up codelite for MSVC 2008:
You have to specify not only the path to cl.exe, but also to the general Visual Studio stuff:
<path_to_vs>\VC\bin AND <path_to_vs>\Common7\IDE
see also my post on that issue:
http://codelite.org/forum/viewtopic.php?f=3&t=985
HTH,
Kay
Re: VC++ complier with Codelite
Posted: Thu Apr 14, 2011 2:22 pm
by nemesis
hej!
where and how exactly did you put these? i tried a zillion methods to tell codelite searching for the binary but it doesn't work for me either. executed vcvars32.bat, added the path to msvc to the windows envpath, added the path to the cl internal env vars, added the path in practically EVERY textfield i found but it still uses mingw.
what leads to my wondering - why does it use mingw by default? mingw just seems to be defined in 'build systems' - i selected vc++ compiler for my project though. why doesn't it spit out something like 'can't find cl.exe'?
regards,
nem
Re: VC++ complier with Codelite
Posted: Fri Apr 15, 2011 3:20 pm
by kay
Hi,
see screenshot below. Please note the backslashes in the path and the _missing_ double-quotes (").
Regarding mingw, that is still in my path, as I am using the standard mingw32-make build system of codelite also for MSVC.
BTW, is there a way to prevent overriding of these settings when updating codelite?
Cheers,
Kay