NetXMS Support Forum

Development => Windows => Topic started by: simo on January 22, 2009, 10:27:45 AM

Title: error libnxlp
Post by: simo on January 22, 2009, 10:27:45 AM
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,
Title: Re: error libnxlp
Post by: Victor Kirhenshtein on January 23, 2009, 09:39:00 AM
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