Archived

This forum has been archived. Please start a new discussion on GitHub.

some serious problem when i use "snmp++" and "ice" in a project?

i want to use "ice“ and hp's "snmp++" in a project,
but when i compile,
have many wrong , it mean type redefinition

wrong is below:
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2def.h(91) : warning C4005: 'AF_IPX' : macro redefinition
1> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winsock.h(460) : see previous definition of 'AF_IPX'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2def.h(124) : warning C4005: 'AF_MAX' : macro redefinition
1> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winsock.h(479) : see previous definition of 'AF_MAX'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2def.h(163) : warning C4005: 'SO_DONTLINGER' : macro redefinition
1> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winsock.h(402) : see previous definition of 'SO_DONTLINGER'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2def.h(206) : error C2011: 'sockaddr' : 'struct' type redefinition
1> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winsock.h(485) : see declaration of 'sockaddr'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2def.h(384) : error C2143: syntax error : missing '}' before 'constant'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2def.h(384) : error C2143: syntax error : missing ';' before 'constant'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2def.h(384) : error C2059: syntax error : 'constant'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2def.h(437) : error C2143: syntax error : missing ';' before '}'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2def.h(437) : error C4430: missing type specifier - int assumed. Note: C++ does not \winsock.h(346) : see previous definition of 'IP_MULTICAST_IF'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2ipdef.h(122) : warning C4005: 'IP_MULTICAST_TTL' : macro redefinition
1> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winsock.h(347) : see previous definition of 'IP_MULTICAST_TTL'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2ipdef.h(123) : warning C4005: 'IP_MULTICAST_LOOP' : macro redefinition
1> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winsock.h(348) : see previous definition of 'IP_MULTICAST_LOOP'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2ipdef.h(124) : warning C4005: 'IP_ADD_MEMBERSHIP' : macro redefinition
1> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winsock.h(349) : see previous definition of 'IP_ADD_MEMBERSHIP'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2ipdef.h(125) : warning C4005: 'IP_DROP_MEMBERSHIP' : macro redefinition
1> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winsock.h(350) : see previous definition of 'IP_DROP_MEMBERSHIP'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2ipdef.h(126) : warning C4005: 'IP_DONTFRAGMENT' : macro redefinition
1> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winsock.h(353) : see previous definition of 'IP_DONTFRAGMENT'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(750) : error C2061: syntax error : identifier 'MULTICAST_MODE_TYPE'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(757) : error C2065: 'PIP_MSFILTER' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(757) : error C2146: syntax error : missing ';' before identifier 'Filter'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(757) : error C2065: 'Filter' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(759) : error C2065: 'SourceCount' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(760) : error C2065: 'Filter' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(760) : error C2070: ''unknown-type'': illegal sizeof operand
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(760) : error C2065: 'SourceList' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(760) : error C2070: ''unknown-type'': illegal sizeof operand
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(761) : error C3861: 'WSASetLastError': identifier not found
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(765) : error C2065: 'IP_MSFILTER' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(765) : error C2070: ''unknown-type'': illegal sizeof operand
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(765) : error C2065: 'SourceCount' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(766) : error C2065: 'Filter' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(766) : error C2065: 'PIP_MSFILTER' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(766) : error C2146: syntax error : missing ';' before identifier 'HeapAlloc'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(767) : error C2065: 'Filter' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(768) : error C3861: 'WSASetLastError': identifier not found
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(772) : error C2065: 'Filter' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(772) : error C2227: left of '->imsf_multiaddr' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(773) : error C2065: 'Filter' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(773) : error C2227: left of '->imsf_interface' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(774) : error C2065: 'Filter' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(774) : error C2227: left of '->imsf_fmode' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(774) : error C2065: 'FilterMode' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(775) : error C2065: 'Filter' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(775) : error C2227: left of '->imsf_numsrc' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(775) : error C2065: 'SourceCount' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(776) : error C2065: 'SourceCount' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(778) : error C2065: 'Filter' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(778) : error C2227: left of '->imsf_slist' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(778) : error C2065: 'SourceList' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(778) : error C2065: 'SourceCount' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(778) : error C2065: 'SourceList' : undeclared identifier
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h(778) : error C2070: ''unknown-type'': illegal sizeof operand


chanchanyuna

Comments