471,066 Members | 1,183 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

Why does this fix a warning message?

in stdafx.h?

It's the error mentioned in
http://msdn.microsoft.com/library/de...ml/LNK4098.asp

#ifdef DEBUG

#pragma comment(lib, "libcmtd.lib") // multithreaded debug

#else

#pragma comment(lib, "libcmt.lib") // multithreaded release

#endif

In some projects, I get this nasty error, that the wrong library libcmt.lib
is linked in debug mode. Since I'm sure, all my compilation options are OK,
I wanted to solve this anyway, so I used the macro above.

May 16 '06 #1
0 819

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Ben Sehara | last post: by
12 posts views Thread by prashna | last post: by
92 posts views Thread by Heinrich Pumpernickel | last post: by
13 posts views Thread by Paul Melis | last post: by
65 posts views Thread by Aditya | last post: by
45 posts views Thread by Bob Altman | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.