title: POCO libraries: MinGW (MSYS2) compilation has generated libPocoDataODBC.dll with missing entry points (Poco::Data::ODBC::Connector::registerConnector)
body: <p>I have succeeded compiling POCO libraries with MinGW64 (MSYS2).
  To build it, I installed Windows SDK and added to the PATH environment the path to <code>mc.exe</code>, so I executed:</p>
  
  <pre><code>pacman -S mingw-w64-x86_64-cmake
  # Get POCO
  git clone -b master https://github.com/pocoproject/poco.git
  # set Windows SDK to the PATH
  export PATH="/c/Program Files (x86)/Windows Kits/10/bin/10.0.18362.0/x64:$PATH"
  # Prepare compilation
  cd poco
  /mingw64/bin/cmake -G "MSYS Makefiles" ..
  # Compile
  make
  </code></pre>
  
  <p>The compilation succeeded and libraries were generated.</p>
  
  <p>Then, in the code of my c++ project, I use POCO::Data::ODBC and register it with:</p>
  
  <pre><code>Poco::Data::ODBC::Connector::registerConnector();
  </code></pre>
  
  <p>The application compiles, but there is a linker error:</p>
  
  <pre><code>undefined reference to `Poco::Data::ODBC::Connector::registerConnector()'
  </code></pre>
  
  <p>Inspecting the library libPocoDataODBC.dll with dllexp.exe I can confirm there is no entry point defined  for Poco::Data::ODBC::Connector::registerConnector()</p>
  
  <p>Any idea of the reason of this lack of entry points in the library?
  My code accesses other POCO libraries with no problem. IT only affects Poco::Data::ODBC.</p>
  
  <p><strong>Note</strong>: I'm linking the librares with parameters
  <code>-lPocoDataODBC -lPocoData -lPocoNet -lPocoJSON -lPocoUtil -lPocoFoundation -lPocoNetSSL -lPocoXML</code></p>
  
  <p>I can see a similar question at <a href="https://stackoverflow.com/q/50168733/12288398">this question</a> but with no answer...</p>