Results 1 to 2 of 2

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

  1. #1
    chanchanyuan is offline Registered User
    Name: chan chan
    Organization: wuhan university of sicence and engineering
    Project: do some study
    Join Date
    Jun 2009
    Posts
    13

    Angry 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

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Please have a look at this thread: how to combinate ICE with ACE

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 01-31-2011, 07:32 PM
  2. How to transform "bidir" into a _tWinMain dll project?
    By stanley20080628 in forum Help Center
    Replies: 3
    Last Post: 12-15-2009, 12:24 AM
  3. Replies: 1
    Last Post: 01-28-2009, 06:15 AM
  4. Replies: 4
    Last Post: 10-26-2006, 11:23 AM
  5. Replies: 1
    Last Post: 04-05-2004, 08:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •