-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation issue on Mingw32: redeclared without dllimport attribute #104
Comments
How about if you configure --disable-static? Update: I have tried The problem is that the *_test() functions called by czmq_selftest.c are not exported in the DLL. |
Could you please try again with the latest czmq and zmq? Or could |
I use the toolchain from http://mxe.cc and I create a folder $HOME/local_mingw32. for libzmq: for czmq Sometimes, there are changes in the source code that break compilation with MinGW32. |
I think we need some kind of guide how to get MinGW+(C)ZMQ build working under wine, because the errors seem to occur somewhat frequently and it seems like most people (including me and Travis) are using pretty much Linux-only throughout the development process. |
I'll test it now thanks @pijyoi @ulikoehler if no one else wants to write it then I'll be happy to |
@shancat regular builds on Windows would be awesome... |
@shancat neat... :) |
No other package is needed. You just need to build the cross compiler. |
I can see two different approaches here:
The first one would obviously be easier but I'm not entirely sure if it doesn't act different if run (pseudo-)natively on Windows/Wine -- In the past I've had some problems cross-compiling ARMv6L packages for the Raspberry Pi. I didn't really try to track it down, but at least in this case, the native-approach did a better job. Do you have experience with mingw crosscompiling? |
I have no experience crosscompiling or with Wine but I'm happy to learn. Baby-steps, we'll see how that goes and if something crops up regarding |
Absolutely :) |
@pijyoi finally finished downloading gcc. Did you do anything special |
Libsodium builds cleanly with no changes. Just set prefix to local_mingw FWIW, czmq_selftest.exe runs without errors under wine. Lots of failures |
No progress on this; closing it. |
Here's the log:
Upon running the same gcc command by hand, I get these error messages:
I don't know how harmful that warning is (never really built DLLs on Windows myself), but with
-Werror
it does cause the build to fail.As for my setup, here it is:
That's building czmq 1.3.2, fresh out the release cutter :)
The text was updated successfully, but these errors were encountered: