error LNK2001: unresolved external symbol ___security_cookie
정적라이브러리를 하나만들어 어떤 프로젝트에 사용할 일이 있었습니다.
그런데 아래와 같은 에러가 떴습니다.
제가 만든 라이브러리에서는 아래 3가지 함수를 전혀 사용하지 않는데 왜 이런 오류가 생기는 걸까..
하면서 삽질을 많이 했습니다.
이리저리 헤매다가
VS.net (2003) 으로 만든 정적라이브러리를 VS 6에서 사용할때 아래와 같은 오류가 발생한다는것을 알았습니다.
아직도 정확한 원인은 잘 모르겠습니다.
저는 시간이 없었던 관계로 그냥 라이브러리를 vs6에서 새로 컴파일을 해버렸습니다.
그랬더니 잘되더군요..
TestLib.lib(TestLib.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
TestLib.lib(TestLib.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z)
Debug/Te.exe : fatal error LNK1120: 3 unresolved externals
아래는 구글에서 이리 저리 찾아다니다가 해답이 되는 소리인거 같은데 영어가 딸려서
긁어왔습니다.
http://www.thescripts.com/forum/thread264352.html
|
추가 옵션 2003년9월17일, 오전2시59분 |
error
error LNK2001: unresolved external symbol ___security_cookie or
error LNK2001: unresolved external symbol ___security_cookie
Does anybody knows where does this symbol comes from? Is it because I am
using a wrong library or have some bad compiler/linker options?
Thanks for any help
Olivier Lechenne
Logitech Inc.
Hello Olivier, Thanks for posting in the group. When getting the errors: error LNK2001: unresolved external symbol ___security_cookie in Visual Studio .NET, it is likely that another library is being pulled Go to Tools | Options | Projects | VC++ Directories and in the Include Also, the "unresolved external symbol ____security_cookie" problem has also http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcco... The workarounds given are: * Not use arrays in any functions that call (or end up calling) CRT_INIT, Does that answer your question? Best regards, Get Secure! - www.microsoft.com/security |