Error in creating libnxlp.lib

Started by antonyvasanth, December 15, 2008, 02:04:54 PM

Previous topic - Next topic

antonyvasanth

Hi Victor,

I have come across the following error during compilation. Please help me to resolve the same.

--------------------Configuration: libnxlp - Win32 Debug--------------------
Linking...
   Creating library Debug/libnxlp.lib and object Debug/libnxlp.exp
main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class StringMap & __thiscall StringMap::operator=(class StringMap &)" (__imp_??4StringMap@@QAEAAV0@AAV0@@Z)
parser.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class StringMap & __thiscall StringMap::operator=(class StringMap &)" (__imp_??4StringMap@@QAEAAV0@AAV0@@Z)
rule.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class StringMap & __thiscall StringMap::operator=(class StringMap &)" (__imp_??4StringMap@@QAEAAV0@AAV0@@Z)
winfile.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class StringMap & __thiscall StringMap::operator=(class StringMap &)" (__imp_??4StringMap@@QAEAAV0@AAV0@@Z)
parser.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall StringMap::StringMap(void)" (__imp_??0StringMap@@QAE@XZ)
parser.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall StringMap::~StringMap(void)" (__imp_??1StringMap@@QAE@XZ)
parser.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: char * __thiscall StringMap::Get(char const *)" (__imp_?Get@StringMap@@QAEPADPBD@Z)
parser.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall StringMap::Set(char const *,char const *)" (__imp_?Set@StringMap@@QAEXPBD0@Z)
parser.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall String::operator char *(void)" (__imp_??BString@@QAEPADXZ)
rule.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall String::operator char *(void)" (__imp_??BString@@QAEPADXZ)
parser.obj : error LNK2001: unresolved external symbol __imp__XMLGetAttrDWORD
parser.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class String const & __thiscall String::operator=(char const *)" (__imp_??4String@@QAEABV0@PBD@Z)
parser.obj : error LNK2001: unresolved external symbol __imp__XMLGetAttr
parser.obj : error LNK2001: unresolved external symbol __imp__XMLGetAttrInt
parser.obj : error LNK2001: unresolved external symbol __imp__XMLGetAttrBoolean
parser.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall String::IsEmpty(void)" (__imp_?IsEmpty@String@@QAEHXZ)
parser.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall String::Strip(void)" (__imp_?Strip@String@@QAEXXZ)
parser.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall String::AddString(char const *,unsigned long)" (__imp_?AddString@String@@QAEXPBDK@Z)
rule.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall String::AddString(char const *,unsigned long)" (__imp_?AddString@String@@QAEXPBDK@Z)
parser.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall String::String(void)" (__imp_??0String@@QAE@XZ)
rule.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall String::String(void)" (__imp_??0String@@QAE@XZ)
parser.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall String::~String(void)" (__imp_??1String@@QAE@XZ)
rule.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall String::~String(void)" (__imp_??1String@@QAE@XZ)
rule.obj : error LNK2001: unresolved external symbol __imp__regcomp
rule.obj : error LNK2001: unresolved external symbol __imp__regfree
rule.obj : error LNK2001: unresolved external symbol __imp__regexec
rule.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class String const & __thiscall String::operator+=(char const *)" (__imp_??YString@@QAEABV0@PBD@Z)
Debug/libnxlp.dll : fatal error LNK1120: 20 unresolved externals
Error executing link.exe.


Regards,

Antony Vasanth

Eugene.ng

hi Antony Vasanth,
   I'm facing the same problem, did u managed to find out any solution?

Eugene.ng

for those who might be running into the same problem, my solution is recompile libnetxms without UNICODE and include the newly compiled libnetxms .lib into libnxlp project