View previous topic :: View next topic |
Author |
Message |
alucard3186
Joined: 05 Jun 2010 Posts: 8
|
Posted: Sun Jul 25, 2010 11:42 pm Post subject: problem compling miniupnpc-1.4.20100609 under windows. |
|
|
when i am running mingw32make.bat the last ligne of out is:
connecthostport.c: In function 'connecthostport':
connecthostport.c:140: warning: implicit declaration of function 'getaddrinfo'
connecthostport.c:207: warning: implicit declaration of function 'freeaddrinfo'
ar cr libminiupnpc.a miniwget.o minixml.o igd_desc_parse.o minisoap.o miniupnpc.o upnpreplyparse.o upnpcommands.o upnperrors.o connecthostport.o
gcc -o upnpc-static upnpc.o libminiupnpc.a -lws2_32 -liphlpapi
libminiupnpc.a(miniupnpc.o):miniupnpc.c:(.text+0x73d): undefined reference to `getaddrinfo'
libminiupnpc.a(miniupnpc.o):miniupnpc.c:(.text+0x7d1): undefined reference to `freeaddrinfo'
libminiupnpc.a(miniwget.o):miniwget.c:(.text+0xae): undefined reference to `getnameinfo'
libminiupnpc.a(connecthostport.o):connecthostport.c:(.text+0x57): undefined reference to `getaddrinfo'
libminiupnpc.a(connecthostport.o):connecthostport.c:(.text+0xe2): undefined reference to `freeaddrinfo'
collect2: ld returned 1 exit status
mingw32-make: *** [upnpc-static] Error 1
i am sure that this function is in ws2_32.a or in iphlpapi.a
i am using mingw32 livred whith QT4.6 . _________________ I WILL WORK |
|
Back to top |
|
|
alucard3186
Joined: 05 Jun 2010 Posts: 8
|
|
Back to top |
|
|
compustink
Joined: 18 Mar 2011 Posts: 2
|
Posted: Fri Mar 18, 2011 11:03 pm Post subject: |
|
|
Thank you very much for this link. The solution worked out great. I have been trying to figure this out for quite a while. This forum has proven itself to be a very valuable resource for miniupnp users. Every time I have an issue, I find the answer here. |
|
Back to top |
|
|
|