Status: New Owner: ---- New issue 216 by saarora1: Link errors when linking the v8 static lib with MFC application http://code.google.com/p/v8/issues/detail?id=216
I got the linking errors when linking the v8 static lib inside a MFC sample appliction using v8 sample. Following are the errors. 1>Linking... 1>v8.lib(api.obj) : error LNK2005: "public: __thiscall v8::HandleScope::HandleScope(void)" (??0handlesc...@v8@@q...@xz) already defined in v8-Sample.obj 1>v8.lib(api.obj) : error LNK2005: "public: __thiscall v8::HandleScope::~HandleScope(void)" (??1handlesc...@v8@@q...@xz) already defined in v8-Sample.obj 1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library 1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library 1>v8-Sample.obj : error LNK2001: unresolved external symbol "private: static class v8::HandleScope::Data v8::HandleScope::current_" (? curre...@handlescope@v8@@0vd...@12@A) 1>v8-Sample.obj : error LNK2019: unresolved external symbol "private: static void __cdecl v8::HandleScope::ZapRange(void * *,void * *)" (? zapra...@handlescope@v8@@caxpap...@z) referenced in function "private: void __thiscall v8::HandleScope::RestorePreviousState(void)" (? restorepreviousst...@handlescope@v8@@AAEXXZ) 1>v8-Sample.obj : error LNK2019: unresolved external symbol "private: static void __cdecl v8::HandleScope::DeleteExtensions(void)" (? deleteextensi...@handlescope@v8@@CAXXZ) referenced in function "private: void __thiscall v8::HandleScope::RestorePreviousState(void)" (? restorepreviousst...@handlescope@v8@@AAEXXZ) 1>.\Debug/CEditFlat.exe : fatal error LNK1120: 3 unresolved externals Regards Sanjay Arora -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
