Error while compile NetXMS 0.2.24

Started by simo, January 06, 2009, 10:51:09 AM

Previous topic - Next topic

simo

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

Victor Kirhenshtein

Hello!

Looks like compiler tries to use incorrect _CONTEXT definition from WinNT.h. Such result can occur if you have _M_X64 defined instead of _M_IX86 when compiling StackWalker.cpp. Maybe you have 64bit version of cl.exe first in your path?

Best regards,
Victor