From: SourceForge.net <no...@so...> - 2005-01-31 18:17:52
|
Bugs item #1113349, was opened at 2005-01-31 12:17 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1113349&group_id=2435 Category: w32api Group: None Status: Open Resolution: None Priority: 5 Submitted By: ross (rossboulet) Assigned to: Nobody/Anonymous (nobody) Summary: definitions missing from iptypes.h and iphlpapi.h Initial Comment: $ 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1113349&group_id=2435 |