Code::Blocks Forums

User forums => Help => Topic started by: Promit on February 07, 2005, 07:30:40 am

Title: msvcprt.lib?
Post by: Promit on February 07, 2005, 07:30:40 am
I'm working on porting a VC6 project to Code::Blocks/VC7.1, and it's asking me for the lib msvcprt.lib. Now, this exists on VC6, but as far as I can tell, the Toolkit doesn't have or use it. So my question is, why is the toolkit compiler and Code::Blocks looking for this lib, and how do I get it to stop? The lib isn't referenced in the cbp project file (I opened it in notepad and did a find).
Title: msvcprt.lib?
Post by: mandrav on February 07, 2005, 09:01:56 am
According to this (http://support.microsoft.com/default.aspx?scid=kb;EN-US;154753), msvcprt.lib is implicitely linked to the project if the linker switch /MD is specified.
Remove this switch from the project's linker (or compiler) options. This should remove the dependency...

HTH,
Yiannis.