By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,534 Members | 1,807 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,534 IT Pros & Developers. It's quick & easy.

Linker Errors in VC7 Project

P: 1
i have ported one project which was working in VC6 to VC7. Now the project is working fine in VC7 also. I have made some additions in VC7 environment only. But the problem is that the project is not working in the release mode. I mean it is shooting off linking errors. I am required to generate an exe file and am looking for some suggestions!!! thank you all


Linker Errors are something like this...
error LNK2001: unresolved external symbol @__security_check_cookie@4
error LNK2001: unresolved external symbol ___security_cookie
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __ftol2
error LNK2001: unresolved external symbol __imp___localtime64
error LNK2001: unresolved external symbol __imp___localtime64
error LNK2001: unresolved external symbol __imp___localtime64
error LNK2001: unresolved external symbol __imp___resetstkoflw
error LNK2001: unresolved external symbol __imp___time64
error LNK2001: unresolved external symbol __imp___time64
error LNK2001: unresolved external symbol __SEH_epilog
error LNK2001: unresolved external symbol __SEH_prolog
error LNK2019: unresolved external symbol @__security_check_cookie@4 referenced in function "unsigned int __stdcall ATL::_AtlGetThreadACPFake(void)" (?_AtlGetThreadACPFake@ATL@@YGIXZ)
error LNK2019: unresolved external symbol ___security_cookie referenced in function "unsigned int __stdcall ATL::_AtlGetThreadACPFake(void)" (?_AtlGetThreadACPFake@ATL@@YGIXZ)
error LNK2019: unresolved external symbol __ftol2 referenced in function "bool __cdecl ATL::operator==(class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > const &,class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > const &)" (??8ATL@@YA_NABV?$CStringT@DV?$StrTraitMFC_DLL@DV? $ChTraitsCRT@D@ATL@@@@@0@0@Z)
error LNK2019: unresolved external symbol __ftol2 referenced in function "public: enum eErrorCode __thiscall CAngleMeasurement::TeachPattern(class CRect)" (?TeachPattern@CAngleMeasurement@@QAE?AW4eErrorCod e@@VCRect@@@Z)
error LNK2019: unresolved external symbol __ftol2 referenced in function "public: void __thiscall CLudlXYZController::ConvertWaferToStageCoOrdinate( double,double,struct StructAbsChuckLocation &)" (?ConvertWaferToStageCoOrdinate@CLudlXYZController @@QAEXNNAAUStructAbsChuckLocation@@@Z)
error LNK2019: unresolved external symbol __ftol2 referenced in function "public: void __thiscall CWnd::UpdateWindow(void)" (?UpdateWindow@CWnd@@QAEXXZ)
error LNK2019: unresolved external symbol __imp___localtime64 referenced in function "public: class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > __thiscall ATL::CTime::Format(char const *)const " (?Format@CTime@ATL@@QBE?AV?$CStringT@DV?$StrTraitM FC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@2@PBD@Z)
error LNK2019: unresolved external symbol __imp___resetstkoflw referenced in function "bool __cdecl ATL::_ATL_SAFE_ALLOCA_IMPL::_AtlVerifyStackAvailab le(unsigned long)" (?_AtlVerifyStackAvailable@_ATL_SAFE_ALLOCA_IMPL@A TL@@YA_NK@Z)
error LNK2019: unresolved external symbol __imp___time64 referenced in function "public: static class ATL::CTime __stdcall ATL::CTime::GetTickCount(void)" (?GetTickCount@CTime@ATL@@SG?AV12@XZ)
error LNK2019: unresolved external symbol __SEH_epilog referenced in function "bool __cdecl ATL::_ATL_SAFE_ALLOCA_IMPL::_AtlVerifyStackAvailab le(unsigned long)" (?_AtlVerifyStackAvailable@_ATL_SAFE_ALLOCA_IMPL@A TL@@YA_NK@Z)
error LNK2019: unresolved external symbol __SEH_prolog referenced in function "bool __cdecl ATL::_ATL_SAFE_ALLOCA_IMPL::_AtlVerifyStackAvailab le(unsigned long)" (?_AtlVerifyStackAvailable@_ATL_SAFE_ALLOCA_IMPL@A TL@@YA_NK@Z)
fatal error LNK1120: 8 unresolved externals
Nov 13 '06 #1
Share this Question
Share on Google+
1 Reply


Banfa
Expert Mod 5K+
P: 8,916
If it is linking in the debug build and you are getting these errors in release build then I suggest you examine the libraries that are being included into each build looking for libraries that are in the debug build but not in the release build.
Nov 13 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.