Code::Blocks Forums
User forums => Help => Topic started by: rem on January 23, 2006, 07:56:12 pm
-
I'm using code blocks with Microsoft Visual C++ Toolkit 2003 on WinXP. I successfully compiled the wxWidgets libriaries but anytime I want to compile the simplest wxWidgets application I got this linker error:
LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib'
I have no problems on compiling the same example with gcc and libriaries compiled with gcc. But with visual c++ I always fail.
What is wrong? Thanks for any help. rem
-
Hello,
Which C::B version are you using?
Did you download and install M$ SDK, and so on?
[EDIT] Integrating Microsoft Visual Toolkit 2003 with Code::Blocks IDE (http://wiki.codeblocks.org/index.php?title=Integrating_Microsoft_Visual_Toolkit_2003_with_Code::Blocks_IDE)
Best wishes,
Michael
-
Microsoft Visual C++ Toolkit 2003 does not contain the debug libraries.
'MSVCRTD.lib', from what I can understand, is the debug version of 'MSVCRT.lib' which obviously you don't have...
-
Yes, Mandrav is right. I have had some troubles too in the past. grv575 answer (http://forums.codeblocks.org/index.php?topic=696.msg4676#msg4676) could be useful for you.
Michael
-
I'm using 1.0rc2 version of codeblocks. I have installed sdk and I have msvcrtd.lib but not for my machine X86, there is only library for amd64 and IA64. It is strange because I have this error even when I'm trying to compile this example without debugging symbols.
-
I'm using 1.0rc2 version of codeblocks.
Try a nightly build and see if it goes better for you.
I have installed sdk and I have msvcrtd.lib but not for my machine X86, there is only library for amd64 and IA64.
Then your library will probably not work on x86 (but I may be wrong). Did you try grv575 answer?
It is strange because I have this error even when I'm trying to compile this example without debugging symbols.
May be you have set to use debugging symbols in the global compiler options. And then even if you not select debugging symbols in project compiler options, it will be inherit from the global compiler options.
Michael
-
I installed microsoft platform sdk and Microsoft.NET SDK v2.0 but I cannot find msvcrt.lib or msvcrtd.lib there.
May be you have set to use debugging symbols in the global compiler options. And then even if you not select debugging symbols in project compiler options, it will be inherit from the global compiler options.
I have set not to use debugging symbols in the global compiler options and project compiler options but still I the linker needs the msvcrtd.lib. And I have no idea why and where to get this library.
-
In the article "Integrating Microsoft Visual Toolkit 2003 with Code::Blocks IDE" I found this note:
-H2: If the project you are compiling complains that it cannot find "msvcrt.lib" then download the .NET 1.1 SDK and add to the END of the Directories->Linker tab:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib
Both the VC++ Toolkit 2003 and the platform SDK omit this library.
But in the .NET 1.1 SDK I haven't found this library or .NET 2.0 SDK either.
-
I have a question to those who are using microsoft visual c++ toolkit 2003. Do you need msvcrtd.lib to link your project? Do you have this library? And where is it? Thanks for any advice, rem.
-
Do you need msvcrtd.lib to link your project?
you need it, if you want to build a debug version of your program.
Do you have this library?
yes ;-)
And where is it? Thanks for any advice, rem.
it is part of the Visual C (or Studio) but not part of the free toolkit - it is generally NOT freely available
-
Do you have this library?
Yes.
And where is it?
I have both msvcrtd.lib and msvcrt.lib under:
Microsoft Platform SDK\Lib\IA64
and
Microsoft Platform SDK\Lib\AMD64
[EDIT] I have no tried those libraries until now. So, I am not sure if they work or not.
Michael
-
I also have these libraries in the:
D:\Microsoft Platform SDK\Lib\AMD64
and
D:\Microsoft Platform SDK\Lib\IA64
directories. But I need for X86 not amd64 or ia64 machine, so for me these libraries are useless. I also unset produce debugging symbols in the compiler options and the linker stil show the same error:
LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib'
So I really don't know what is going on. Are there libs for X86?