User forums > Using Code::Blocks
Configuring VC++2010 Express (free Version) in CB
mahaju:
Hi
I downloaded VC++2010 Express
For some reason the program crashes on startup
So now I am trying to setup CB to use VC++ compiler but it does not detect VC++2010 automatically
So I made a copy of VC++ 2005/2008 and changed the search directory in the global compiler options to "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin", everything else is at it's default value
I made a Console Application Project for a C file and when I tried to compile I got this error message
Execution of 'cl.exe /nologo /W3 /D_DEBUG /I"C:\Program Files\Microsoft Visual Studio 10.0\VC\bin" /c main.c /Foobj\Debug\main.obj' in 'D:\CB_Files\VC++2010\test\test' failed.
Also, for the toolchain executable tab, how to I set the VC++ 2010 debugger? I cannot find the debugger file there
oBFusCATed:
--- Quote from: mahaju on September 10, 2012, 02:57:43 pm ---Hi
I downloaded VC++2010 Express
For some reason the program crashes on startup
So now I am trying to setup CB to use VC++ compiler but it does not detect VC++2010 automatically
So I made a copy of VC++ 2005/2008 and changed the search directory in the global compiler options to "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin", everything else is at it's default value
I made a Console Application Project for a C file and when I tried to compile I got this error message
Execution of 'cl.exe /nologo /W3 /D_DEBUG /I"C:\Program Files\Microsoft Visual Studio 10.0\VC\bin" /c main.c /Foobj\Debug\main.obj' in 'D:\CB_Files\VC++2010\test\test' failed.
--- End quote ---
Try reading this: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Also please read the rules, there you'll learn how to post good questions.
You're missing information about the versions, so I have to guess what is installed on your machine.
If you're using 10.05, you can try with a nightly build, I think there were some changes related to vc10 in there...
--- Quote from: mahaju on September 10, 2012, 02:57:43 pm ---Also, for the toolchain executable tab, how to I set the VC++ 2010 debugger? I cannot find the debugger file there
--- End quote ---
You can't, because the debugger is tightly integrated with the visual studio and external programs doesn't have access to it.
You can debug vc++ programs by installing the "debugging tools for windows", which include the cdb executable, which
can be used by C::B.
But if you don't need vc++ for a specific project I highly recommend to use a mingw release and gdb, with codeblocks
it will be easier and more complete experience. Especially if you're a novice.
mahaju:
Sorry about that
CB is 10.05 , the Sept 2010 upload I think, Windows 7
I fixed all the paths and added the VC++ path in the Windows environment variables, but then it said mspdb100.dll could not be found
It was present in the VC++ installation folder and I have read that it is an issue even when trying to compile using VC++ from command line
I copied the file from VC++ installation directory to Windows\System32 but now I get this error
"main.c : fatal error C1902: Program database manager mismatch; please check your installation"
Anyway I managed to download the latest (I think, it was Aug 25) nightly build (This one: http://forums.codeblocks.org/index.php/topic,16772.0.html) and the two dll files mentioned in the nightly build information thread, but how do I use it? Do I just overwrite my older CB files with the one's in the nightly build? I do not want to ruin any of my previous settings
Also, what is RC2 that is mentioned in the nightly build information thread?
oBFusCATed:
http://forums.codeblocks.org/index.php/topic,3232.0.html
mahaju:
Ok I did everything but now I'm getting this
link.exe /nologo /LIBPATH:"C:\Program Files\Microsoft Visual Studio 10.0\VC\lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio 10.0\VC\bin" /out:bin\Debug\test.exe libcmtd.lib libcpmtd.lib obj\Debug\main.obj /DEBUG
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
I have included ..vc\lib to the linker path
and there is no kernel32.lib inside the VC++2010 directory
Also, http://forums.codeblocks.org/index.php?topic=12915.0
but I don't understand it
Please help
thank you
Navigation
[0] Message Index
[#] Next page
Go to full version