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 

mingw64 compilation

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



Joined: 17 Apr 2011
Posts: 2

PostPosted: Sun Apr 17, 2011 6:22 pm    Post subject: mingw64 compilation Reply with quote

Hi,

I've got a little problem:

I tried to compile miniupnpc for mingw64 for a native windows 64bit build.

the static variant is working fine, but the shared library gives me a "0xc0000142" error

the 32bit mingw dll does work fine - though there is either a problem in mingw64 (but other dlls work fine) or some in miniupnpc

any suggestions?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1477

PostPosted: Mon Apr 18, 2011 7:35 am    Post subject: Reply with quote

well I dont know if there is some specific things to do to insure the code is compatbile with mingw64...
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
FloSoft



Joined: 17 Apr 2011
Posts: 2

PostPosted: Mon Apr 18, 2011 7:42 am    Post subject: Reply with quote

ok, strange at it is - but it seems now it was a bug in the mingw64 toolchain.

the workaround was adding "-e DllMainCRTStartup" to the dllwrap call.

strange thing is only that all other dlls I use or create work?!? but perhaps all of those dlls have a DllMain defined

oh and I have a full mingw32/w64 toolchain for debian/ubuntu (including miniupnpc) here:

https://launchpad.net/~flosoft/+archive/cross-mingw

I also have a "native" debian/ubuntu package for miniupnpc here:

https://launchpad.net/~flosoft/+archive/s25rttr
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 -> 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.