PDA

View Full Version : Linking errors in Windows



tenwang
05-25-2011, 03:54 AM
Hi,

I am static linking lmgr11.lib(and lmgr11.dll) with a VC++.net module.
I have built the DLL version of the toolkit using command "nmake -f makefile DLL=1".
* I modified the vendor name, vendor keys as required.
* I am not using TRL feature and defined macro LM_STRENGTH as LM_STRENGTH_DEFAULT.
* created seed data and used as values for LM_SEEDX macros.
* modifed the make file and used my Vendor name.

This version is working when I use lmflex.exe.
But I get the following linking errors when I statically link to the lmgr11.dll.

1>lm_new.obj : error LNK2019: unresolved external symbol _l_borrow_decrypt referenced in function _l_buff_1
1>lm_new.obj : error LNK2001: unresolved external symbol _l_borrow_dptr
1>lm_new.obj : error LNK2019: unresolved external symbol _l_x77_buf referenced in function _l_buff_1
1>K:\GXR\Pacific\Bin\Philips.PmsGxr.LicenseService.FlexLmApiWrapper.dll : fatal error LNK1120: 3 unresolved externals

Any clues on how to resolve this error?

Thanks!
Tenwang