miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

problem compling miniupnpc-1.4.20100609 under windows.

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation
View previous topic :: View next topic  
Author Message
alucard3186



Joined: 05 Jun 2010
Posts: 8

PostPosted: Sun Jul 25, 2010 11:42 pm    Post subject: problem compling miniupnpc-1.4.20100609 under windows. Reply with quote

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
View user's profile Send private message Send e-mail
alucard3186



Joined: 05 Jun 2010
Posts: 8

PostPosted: Tue Jul 27, 2010 10:20 pm    Post subject: Reply with quote

there is the solution:
http://miniupnp.tuxfamily.org/forum/viewtopic.php?t=642
_________________
I WILL WORK
Back to top
View user's profile Send private message Send e-mail
compustink



Joined: 18 Mar 2011
Posts: 2

PostPosted: Fri Mar 18, 2011 11:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.