User forums > Help

Linker error with Microsoft Visual C++

(1/3) > >>

rem:
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

Michael:
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

Best wishes,
Michael

mandrav:
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...

Michael:
Yes, Mandrav is right. I have had some troubles too in the past. grv575 answer could be useful for you.

Michael

rem:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version