#714 definitions missing from iptypes.h and iphlpapi.h

closed-fixed
nobody
2006-04-05
2005-01-31
ross
No

$ g++ -mno-cygwin ip-interface1.cpp
ip-interface1.cpp: In function `int main(int, char**)':
ip-interface1.cpp:9: error: `PIP_ADAPTER_ADDRESSES'
undeclared (first use this
function)
ip-interface1.cpp:9: error: (Each undeclared identifier
is reported only once
for each function it appears in.)
ip-interface1.cpp:9: error: parse error before `;' token
ip-interface1.cpp:10: error: `pAddresses' undeclared
(first use this function)
ip-interface1.cpp:10: error: `IP_ADAPTER_ADDRESSES'
undeclared (first use this
function)
ip-interface1.cpp:10: error: parse error before `)' token
ip-interface1.cpp:20: error: `GetAdaptersAddresses'
undeclared (first use this
function)
ip-interface1.cpp:22: error: parse error before `)' token

PIP_ADAPTER_ADDRESSES and IP_ADAPTER_ADDRESSES are
supposed to be defined in iptypes.h

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iphlp/iphlp/ip_adapter_addresses.asp

GetAdaptersAddresses() is supposed to be defined in
iphlpapi.h

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iphlp/iphlp/getadaptersaddresses.asp

My environment is:

OS: Windows XP Pro SP2
gcc version 3.3.3 (cygwin special)
GNU ld version 2.15.94 20041229
build environment Cygwin

Cygwin Package Information
Package Version Status
gcc 3.3.3-3 OK
gcc-core 3.3.3-3 OK
gcc-g++ 3.3.3-3 OK
gcc-java 3.3.3-3 OK
gcc-mingw 20040810-1 OK
gcc-mingw-core 20040810-1 OK
gcc-mingw-g++ 20040810-1 OK
gcc-mingw-java 20040810-1 OK
mingw-runtime 3.7-1 OK
w32api 3.2-1 OK

Discussion

  • ross

    ross - 2005-01-31

    _mingw.h

     
  • ross

    ross - 2005-02-01
     
  • Dimitri Papadopoulos

    • status: open --> closed-fixed
     
  • Dimitri Papadopoulos

    Logged In: YES
    user_id=52414

     
  • Dimitri Papadopoulos

    Logged In: YES
    user_id=52414

    The problem you report has caused modification in some fashion in the official CVS for the given package. The w32api and
    mingw-runtime official CVS reside in the winsup CVS directory tree for Cygwin. Those package CVS trees are periodically
    merged into the MinGW CVS tree. If you still find problems then please open a new report.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks