error libnxlp
-
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,
-
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
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