VS 2008 linking error

Posted by AvatarBlue on Stack Overflow See other posts from Stack Overflow or by AvatarBlue
Published on 2012-11-01T09:51:16Z Indexed on 2012/11/01 11:00 UTC
Read the original article Hit count: 195

Filed under:
|
|

I'm using Visual Studio 2008 C++ and working on a dll project. Debug compiled and linked perfectly but when I compile the release version, it shows this:

VImgPtr.obj : error LNK2001: unresolved external symbol @__security_check_cookie@4
VLibraryPtr.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z)
D:\Source Code\VImgLib\Release-vc9u\VImgLib-vc9u.dll : fatal error LNK1120: 2 unresolved externals

If I selected Multi-threaded (/MT) in "C/C++->Code Generation tab), it linked ok. The problem is only when I choose Multi-threaded DLL (/MD). I'm releasing a dll, so should be /MD right?

© Stack Overflow or respective owner

Related posts about c++

Related posts about visual-studio-2008