Page 1 of 1

building for MSVC 9.0 fails

Posted: Wed Jun 16, 2010 5:25 pm
by kay
Hi,

I have a problem, when building a project for MSVC 9.0:

----------Build Started--------
C:\WINDOWS\system32\cmd.exe /c ""mingw32-make.exe" -j 2 -f "ImgProc_wsp.mk""
----------Building project:[ ImgProcOpenCV - Debug ]----------
mingw32-make.exe[1]: Entering directory `M:/TORPEDO/C_C++/ImgProc/ImgProcOpenCV'
cl.exe /nologo /c "M:/TORPEDO/C_C++/ImgProc/ImgProcOpenCV/main.cpp" /DEBUG /EHsc /FoDebug/main.obj "/IC:/Program Files/Microsoft Visual Studio 9.0/VC/include" "/I." "/I." "/IC:/Opt/OpenCV2.0/include"
mingw32-make.exe[1]: *** [Debug/main.obj] Error -1073741515
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
mingw32-make.exe: *** [All] Error 2
mingw32-make.exe[1]: Leaving directory `M:/TORPEDO/C_C++/ImgProc/ImgProcOpenCV'
----------Build Ended----------
0 errors, 0 warnings

It looks like mingw32-make gets some internal error. Building for MinGW works fine, also pasting the msvc-related commands (cl.exe /nologo ...) into a cmd.exe session gives no problems. I already played around with additional "" in the building options (like include paths) with no effect.

I am using codelite v2.5.34075 on WinXP SP3.

Most probably, this is a mingw32-make issue, but maybe someone has a clue...

Best regards,
Kay-Uwe

Re: building for MSVC 9.0 fails

Posted: Wed Jun 23, 2010 5:21 pm
by kay
Hi,

finally I solved the problem:
in the build settings of Codelite it is not sufficient to include the path to cl.exe (<path-to-vs>\VC\bin) it also needs <..>\Common7\IDE. This works at least for my MSVC Version, which Visual Studio Express 2008.
I don't know who is to blame for the "helpful" error message "-1073741515" mingw32-make or MS' cl.exe.

Ciao,
Kay-Uwe