LEADTOOLS Support
Document
Document SDK Questions
Link errors compiling developed barcode reading software, using LeadTools "LTBar_u.lib"
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, March 18, 2011 11:00:24 AM(UTC)
Groups: Registered
Posts: 5
I have used #pragma comment(lib, "..\\Lead_Lib\\Ltbar_u.lib") in my *.h file and copied Ltbar_u.lib to the proper folder.
Had the following link errors:
sbr_international_mfc error LNK2001: unresolved external symbol "protected: virtual int __thiscall LBase::LoadInfoCallBack(struct L_HFILE__ *,struct _LOADINFO *)" (?LoadInfoCallBack@LBase@@MAEHPAUL_HFILE__@@PAU_LOADINFO@@@Z)
sbr_international_mfc error LNK2001: unresolved external symbol "protected: virtual int __thiscall LBase::OverlayCallBack(struct _FILEOVERLAYCALLBACKDATAA *)" (?OverlayCallBack@LBase@@MAEHPAU_FILEOVERLAYCALLBACKDATAA@@@Z)
sbr_international_mfc error LNK2001: unresolved external symbol "protected: virtual int __thiscall LBase::StatusCallBack(int)" (?StatusCallBack@LBase@@MAEHH@Z)
sbr_international_mfc error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall LBarCode::SetReadOptions(struct tagBarCodeReadOpt *)" (__imp_?SetReadOptions@LBarCode@@QAEHPAUtagBarCodeReadOpt@@@Z) referenced in function "public: __thiscall LeadTools::LeadTools(void)" (??0LeadTools@@QAE@XZ)
sbr_international_mfc error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall LBarCode::LBarCode(void)" (__imp_??0LBarCode@@QAE@XZ) referenced in function "public: __thiscall LeadTools::LeadTools(void)" (??0LeadTools@@QAE@XZ)
sbr_international_mfc error LNK2019: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl LBase::SetErrorListDepth(unsigned int)" (__imp_?SetErrorListDepth@LBase@@SAII@Z) referenced in function "public: __thiscall LeadTools::LeadTools(void)" (??0LeadTools@@QAE@XZ)
sbr_international_mfc error LNK2019: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl LBase::LoadLibraries(unsigned int,unsigned int)" (__imp_?LoadLibraries@LBase@@SAIII@Z) referenced in function "public: __thiscall LeadTools::LeadTools(void)" (??0LeadTools@@QAE@XZ)
sbr_international_mfc error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall LBarCode::~LBarCode(void)" (__imp_??1LBarCode@@UAE@XZ) referenced in function "public: virtual void * __thiscall LBarCode::`scalar deleting destructor'(unsigned int)" (??_GLBarCode@@UAEPAXI@Z)
sbr_international_mfc error LNK2019: unresolved external symbol "__declspec(dllimport) public: static int __cdecl LBarCode::Free(struct _tagBarCodeData *)" (__imp_?Free@LBarCode@@SAHPAU_tagBarCodeData@@@Z) referenced in function "public: bool __thiscall LeadTools::ReadBarCodes(void *,unsigned char *)" (?ReadBarCodes@LeadTools@@QAE_NPAXPAE@Z)
sbr_international_mfc error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct _tagBarCodeData * __thiscall LBarCode::GetBarCodeDataItem(int)" (__imp_?GetBarCodeDataItem@LBarCode@@QAEPAU_tagBarCodeData@@H@Z) referenced in function "public: bool __thiscall LeadTools::ReadBarCodes(void *,unsigned char *)" (?ReadBarCodes@LeadTools@@QAE_NPAXPAE@Z)
sbr_international_mfc error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall LBarCode::Read(int,struct _tagBarCode1D *,struct _tagBarCodeReadPDF *)" (__imp_?Read@LBarCode@@QAEHHPAU_tagBarCode1D@@PAU_tagBarCodeReadPDF@@@Z) referenced in function "public: bool __thiscall LeadTools::ReadBarCodes(void *,unsigned char *)" (?ReadBarCodes@LeadTools@@QAE_NPAXPAE@Z)
sbr_international_mfc error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall LBitmapBase::~LBitmapBase(void)" (__imp_??1LBitmapBase@@UAE@XZ) referenced in function "public: bool __thiscall LeadTools::ReadBarCodes(void *,unsigned char *)" (?ReadBarCodes@LeadTools@@QAE_NPAXPAE@Z)
sbr_international_mfc error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall LBarCode::IsValid(void)" (__imp_?IsValid@LBarCode@@QAEHXZ) referenced in function "public: bool __thiscall LeadTools::ReadBarCodes(void *,unsigned char *)" (?ReadBarCodes@LeadTools@@QAE_NPAXPAE@Z)
sbr_international_mfc error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall LBarCode::SetBitmap(class LBitmapBase *)" (__imp_?SetBitmap@LBarCode@@QAEXPAVLBitmapBase@@@Z) referenced in function "public: bool __thiscall LeadTools::ReadBarCodes(void *,unsigned char *)" (?ReadBarCodes@LeadTools@@QAE_NPAXPAE@Z)
sbr_international_mfc error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall LBitmapBase::LBitmapBase(struct tagBITMAPINFO *,unsigned char *)" (__imp_??0LBitmapBase@@QAE@PAUtagBITMAPINFO@@PAE@Z) referenced in function "public: bool __thiscall LeadTools::ReadBarCodes(void *,unsigned char *)" (?ReadBarCodes@LeadTools@@QAE_NPAXPAE@Z)
sbr_international_mfc fatal error LNK1120: 15 unresolved externals
#2
Posted
:
Sunday, March 20, 2011 2:44:56 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
The Ltbar_u.lib is not enough to use all LEADTOOLS C++ Class library functions. You are missing reference to one of our lib files.
For example, if you are using C++ Class library functions, you need to use one of the Ltwvc*.lib files. The exact Ltwvc lib file that you need to use depends on the visual studio version and configuration of your project.
The help topic "Files To Be Included With Your Application" in the C++ class library help file shows the exact header and lib files that you need to include in your application.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
Document
Document SDK Questions
Link errors compiling developed barcode reading software, using LeadTools "LTBar_u.lib"
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.