User forums > Using Code::Blocks
Issues in importing a MS Visual C++ .NET 2003 solution
grv575:
have you tried adding msvcrt.lib to the release build
and msvcrtd.lib to the debug build?
grv575:
OK, I actually downloaded the GNU RakNet source. The example you gave, RakVoiceDLL, links to libcmt which is an MS lib. The release version finds C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib\libcmt.lib.
***The Toolkit does not come with debugging libraries***
Download the .NET 1.1 SDK. This will get you C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\libcmtd.lib
Then just add to project->build options->directories->linker:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib
Should compile fine then.
Btw, the import support is surprisingly complete. I can see codeproject type guys liking CB because of this. Real easy to check out other people's source (as MSVC targets are obviously the most common c++ projects/workspaces out there).
-----
Updated the wiki with some hints for VC++ toolkit:
http://wiki.codeblocks.org/index.php/Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE#Compiling_Hints
(feel free to modify if you want to reword or reformat better)
Michael:
Dear all,
Thank you very much for your answers and help.
The problem I have had with the "Chat Example Server" Project was due to an option in "Other Linker options" and specifically to this one:
/pdb:Debug\Chat Example Server.pdb
After removing it, the project compiles fine under debug. This option was set by the import functionality of CodeBlocks.
Regarding the RakVoiceDLL, grv575 was right. After setting the path to C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\lib, RakVoiceDLL compiled fine without the need for the additional code I have put in one of my previous answer.
Anyway, I would like to ask, thedirectory C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\lib point not to MS Visual . NET 2003 C++? Why do you said that it belong to .NET 1.1 SDK? In my computer .NET 1.1 SDK is here:
C:\Programme\Microsoft Visual Studio .NET 2003\SDK
Thank you very much.
Best wishes,
Michael
rickg22:
zieQ, your cue (Q :lol: )
grv575:
yeah the .net sdk installs both those directories (unless you already have VS probably). confusing but i guess they want the path to the C libs in the same place always...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version