I use autotools as a build system for my library. The library has recently been ported to Windows. The library successfully compiles and links, although I found a strange error. After configuration and creation, there are only static libraries. Evertything looks fine, except for a warning from libtool :
libtool: undefined symbols not allowed in i686-pc-mingw32 shared
I exported all the characters for Windows machines by this code:
#ifdef _WIN32 # ifdef DLL_EXPORT # define LIBRARY_API __declspec(dllexport) # else # define LIBRARY_API __declspec(dllimport) # endif #endif #ifndef _WIN32 # define LIBRARY_API #endif
And in every single definition I have:
class LIBRARY_API myClass {
Notes :
Operating System : Windows 8 x86_64
Compiler : MinGW x86_64, MSYS x86
source share