title: libtool: undefined symbols not allowed in i686-pc-mingw32 shared
body: <p>I'm using autotools as build system for a library of mine. Recently library is ported to Windows. Library compiles and links successfully though I encountered a strange error. There is only static libraries after configure and make. Evertything looks OK except a warning from <code>libtool</code>:</p>
  
  <pre><code>libtool: undefined symbols not allowed in i686-pc-mingw32 shared
  </code></pre>
  
  <p>I have exported all symbols for Windows machines by this code:</p>
  
  <pre><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
  </code></pre>
  
  <p>And in every single definition I have:</p>
  
  <pre><code>class LIBRARY_API myClass {
  // ...
  </code></pre>
  
  <p><strong>Notes</strong>:<br>
  <strong>Operating System</strong>: Windows 8 x86_64<br>
  <strong>Compiler suite</strong>: MinGW x86_64, MSYS x86</p>