Jump to content
  • Advertisement
Sign in to follow this  
Promit

Code::Blocks problem (VC toolkit)

This topic is 4672 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm attempting to build a project that I imported from VC7 in Code::Blocks. I'm using the VC 2k3 toolkit, have the platform SDK installed, and all that jazz. It compiles fine, and when it goes to link it errors saying it can't find "msvcrt.lib". I don't think this lib is even supposed to be linked -- isn't it a VC6 library? I'm pretty sure I want lib*.lib as my runtime (multithreaded dll, can't remember the name of the file). I'm not sure why this library is even coming up. It's not listed in my own project options as a link target, so I'm not sure if it's an error with importing or what. Anyway, how can I fix this? [EDIT] Just thought I'd mention, there is no reference to "msvcrt.lib" or anything close in the project file.

Share this post


Link to post
Share on other sites
Advertisement
i don t know how you setup the toolkit

i use the vc++6.0 ide with the 2003 toolkit

what i did was i added the include binary and library paths under
extras->options->folders


i added them before the default folders of the vc++6.0 compiler which worked fine for me

Share this post


Link to post
Share on other sites
Which is why I suspect the problem may be something Code::Blocks is doing -- but I'm not sure. I don't think the Toolkit would attempt to use a lib that it does not itself include, but if the problem is in Code::Blocks, I don't know what to change.

Share this post


Link to post
Share on other sites
If you want the multithreaded DLL runtime than msvcrt.lib is what you need. Code::Blocks doesn't have any specific options for which run-time library you want to use so you have to specify it manually. You can see all the options here.

Share this post


Link to post
Share on other sites
I don't have it installed so I don't know, do a search and find out. I do remember reading about how the VC++ 2003 toolkit didn't include some libraries such as msvcrt.lib though I can't remember where.

Share this post


Link to post
Share on other sites
Ok, I'm having some real problems and I'm pretty pissed off.

Apparently the toolkit doesn't include msvcrt.lib, but you can get it from the .NET SDK. However, neither one has msvcprt.lib, for C++. MSDN says you can ask it to use the static version libcpmt.lib (which I DO have) by passing /D_STATIC_CPPLIB to the compiler. That'd all be great, except the toolkit compiler appears to be ignoring me. I am specifiying /D_STATIC_CPPLIB, but it still asks for msvcprt.lib instead of libcpmt.lib.

Ideally I would get msvcprt.lib...I have a suspicion that a library dependency is bringing it in. Why the heck didn't they put all of the libs with the toolkit?

[Edited by - Promit on August 7, 2005 3:37:12 PM]

Share this post


Link to post
Share on other sites
*sigh* I found instructions on regenerating the lib. So I guess all is well.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!