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 libnxlp

error libnxlp

Scheduled Pinned Locked Moved Development
windows
2 Posts 2 Posters 28.3k 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.
  • S
    S
    simo
    wrote on last edited by
    #1

    Hi Victor,
    I have come across the following error during compilation.

    --------------------Configuration: libnxlp - Win32 Release UNICODE--------------------
    Compiling...
    main.cpp
    parser.cpp
    C:\shownet\netxms-0.2.24\src\libnxlp\parser.cpp(311) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'const char *' (or there is no acceptable conversion)
    C:\shownet\netxms-0.2.24\src\libnxlp\parser.cpp(325) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'const char *' (or there is no acceptable conversion)
    C:\shownet\netxms-0.2.24\src\libnxlp\parser.cpp(436) : error C2664: 'strtoul' : cannot convert parameter 1 from 'class String' to 'const char *'
            No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
    C:\shownet\netxms-0.2.24\src\libnxlp\parser.cpp(439) : error C2440: 'type cast' : cannot convert from 'class String' to 'const char *'
            No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
    C:\shownet\netxms-0.2.24\src\libnxlp\parser.cpp(491) : error C2664: 'AddString' : cannot convert parameter 1 from 'const char *' to 'const unsigned short *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    C:\shownet\netxms-0.2.24\src\libnxlp\parser.cpp(494) : error C2664: 'AddString' : cannot convert parameter 1 from 'const char *' to 'const unsigned short *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    C:\shownet\netxms-0.2.24\src\libnxlp\parser.cpp(497) : error C2664: 'AddString' : cannot convert parameter 1 from 'const char *' to 'const unsigned short *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    C:\shownet\netxms-0.2.24\src\libnxlp\parser.cpp(500) : error C2664: 'AddString' : cannot convert parameter 1 from 'const char *' to 'const unsigned short *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    C:\shownet\netxms-0.2.24\src\libnxlp\parser.cpp(503) : error C2664: 'AddString' : cannot convert parameter 1 from 'const char *' to 'const unsigned short *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    C:\shownet\netxms-0.2.24\src\libnxlp\parser.cpp(506) : error C2664: 'AddString' : cannot convert parameter 1 from 'const char *' to 'const unsigned short *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    C:\shownet\netxms-0.2.24\src\libnxlp\parser.cpp(509) : error C2664: 'AddString' : cannot convert parameter 1 from 'const char *' to 'const unsigned short *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    C:\shownet\netxms-0.2.24\src\libnxlp\parser.cpp(512) : error C2664: 'AddString' : cannot convert parameter 1 from 'const char *' to 'const unsigned short *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    C:\shownet\netxms-0.2.24\src\libnxlp\parser.cpp(515) : error C2664: 'AddString' : cannot convert parameter 1 from 'const char *' to 'const unsigned short *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    C:\shownet\netxms-0.2.24\src\libnxlp\parser.cpp(551) : error C2664: 'strncpy' : cannot convert parameter 2 from 'class String' to 'const char *'
            No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
    rule.cpp
    C:\shownet\netxms-0.2.24\src\libnxlp\rule.cpp(46) : error C2664: 'regcomp' : cannot convert parameter 2 from 'class String' to 'const char *'
            No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
    C:\shownet\netxms-0.2.24\src\libnxlp\rule.cpp(151) : error C2664: 'AddString' : cannot convert parameter 1 from 'const char *' to 'const unsigned short *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    C:\shownet\netxms-0.2.24\src\libnxlp\rule.cpp(161) : error C2664: 'AddString' : cannot convert parameter 1 from 'const char *' to 'const unsigned short *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    C:\shownet\netxms-0.2.24\src\libnxlp\rule.cpp(166) : error C2664: 'GetMacro' : cannot convert parameter 1 from 'char [256]' to 'const unsigned short *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    C:\shownet\netxms-0.2.24\src\libnxlp\rule.cpp(170) : error C2664: 'AddString' : cannot convert parameter 1 from 'const char *' to 'const unsigned short *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    C:\shownet\netxms-0.2.24\src\libnxlp\rule.cpp(176) : error C2664: 'AddString' : cannot convert parameter 1 from 'const char *' to 'const unsigned short *'
            Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    winfile.cpp
    Error executing cl.exe.

    Regards,

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi!

      UNICODE build of libnxlp currently is not supported. This library used by server and logwatch subagent, both of them not using UNICODE as well.

      Best regards,
      Victor

      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