Is it possible to create libSDLmain.a as a shared library on Windows (libSDLmain.dll.a and SDLmain.dll)? Seems like I’ve seen it before.
The reason I ask is because I’m having problems building an old version of SMPEG (0.4.4) (http://svn.icculus.org/smpeg/tags/release_0_4_4/) as a shared library (NOTE: I just noticed that I could be building v0.4.5 (http://svn.icculus.org/smpeg/tags/release_0_4_5/)).
I am working with SDL 1.2.15 (http://libsdl.org/release/) on Windows 7 64-bit with MSYS2/Mingw-w64 (https://sourceforge.net/projects/msys2/) and I’m using GNU Libtool (http://www.gnu.org/software/libtool/) to build the library and it complains that it cannot create a DLL without dynamically linking to libSDLmain (-lSDLmain).
SMPEG build output:
Code:
*** Warning: This system cannot link to static lib archive /usr/local/lib/libSDLmain.la.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
Also, I read that it is only necessary for applications to link to libSDLmain. Can I explicitly tell libraries to not link to it or do I have to mess around with libtool settings? If that’s possible then I wouldn’t need to create the libSDLmain shared library.------------------------
OS:
- Windows XP/Vista
- Ubuntu