Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Development
  3. Error in creating libnxlp.lib

Error in creating libnxlp.lib

Scheduled Pinned Locked Moved Development
windows
3 Posts 2 Posters 39.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    A
    antonyvasanth
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • E
      E
      Eugene.ng
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • E
        E
        Eugene.ng
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups