Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, March 18, 2011 11:00:24 AM(UTC)

bkogan  
bkogan

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
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, March 20, 2011 2:44:56 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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
 
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.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.149 seconds.