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 

miniupnpc-1.9.20141128 windows native compile

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



Joined: 30 Nov 2014
Posts: 1
Location: Paris

PostPosted: Sun Nov 30, 2014 9:58 am    Post subject: miniupnpc-1.9.20141128 windows native compile Reply with quote

Hi,

I just did a native windows build (with free M$ tools, VC++ Express) of latest miniupnpc sources (1.9.20141128). In order to get a successful build, I had to replace line 837 of file miniupnpc.c by :

#if defined(IF_NAMESIZE) && !defined(_WIN32)


You are also missing the following part of code in file upnpc.c just before final return retcode; at the end :

#ifdef _WIN32
{
int nResult = WSACleanup();
if (nResult != NO_ERROR)
{
fprintf(stderr, "WSACleanup() failed.\n");
}
}
#endif
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1593

PostPosted: Mon Dec 01, 2014 9:25 am    Post subject: Reply with quote

thank you !
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc 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.