View previous topic :: View next topic |
Author |
Message |
FloSoft
Joined: 17 Apr 2011 Posts: 2
|
Posted: Sun Apr 17, 2011 6:22 pm Post subject: mingw64 compilation |
|
|
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 |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Mon Apr 18, 2011 7:35 am Post subject: |
|
|
well I dont know if there is some specific things to do to insure the code is compatbile with mingw64... _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
FloSoft
Joined: 17 Apr 2011 Posts: 2
|
Posted: Mon Apr 18, 2011 7:42 am Post subject: |
|
|
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 |
|
|
|