News:

We really need your input in this questionnaire

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - simo

#1
Windows / error libnxlp
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,
#2
General / Error while compile NetXMS 0.2.24
January 06, 2009, 10:51:09 AM
my entironment:
VC6.0
netxms-0.2.24

Error:
......
C:\netxms-0.2.24\src\libnetxms\StackWalker.cpp(798) : error C2039: 'Rip' : is not a member of '_CONTEXT'
        C:\Program Files\Microsoft SDK\include\WinNT.h(3454) : see declaration of '_CONTEXT'
C:\netxms-0.2.24\src\libnetxms\StackWalker.cpp(800) : error C2039: 'Rsp' : is not a member of '_CONTEXT'
        C:\Program Files\Microsoft SDK\include\WinNT.h(3454) : see declaration of '_CONTEXT'
C:\netxms-0.2.24\src\libnetxms\StackWalker.cpp(802) : error C2039: 'Rsp' : is not a member of '_CONTEXT'
        C:\Program Files\Microsoft SDK\include\WinNT.h(3454) : see declaration of '_CONTEXT'
string.cpp
........

Thanks