Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This appears to be a <a href="http://www.mail-archive.com/cygwin-announce@cygwin.com/msg02424.html" rel="nofollow noreferrer">known issue</a>. Grab the <a href="http://switch.dl.sourceforge.net/sourceforge/iodbc/libiodbc-3.52.6.tar.gz" rel="nofollow noreferrer">libiodbc source</a>, apply the following patch, build, and install:</p> <pre><code>diff -ub libiodbc-3.52.6/include/iodbcunix.h.orig --- libiodbc-3.52.6/include/iodbcunix.h.orig 2006-01-26 09:50:59.000000000 +0000 +++ libiodbc-3.52.6/include/iodbcunix.h 2007-12-24 19:33:57.859375000 +0000 @@ -124,6 +124,7 @@ #if defined (OBSOLETE_WINDOWS_TYPES) typedef unsigned char BYTE; #endif +#ifndef WIN32 typedef unsigned short WORD; typedef unsigned int DWORD; typedef char * LPSTR; @@ -131,6 +132,7 @@ typedef wchar_t * LPWSTR; typedef const wchar_t * LPCWSTR; typedef DWORD * LPDWORD; +#endif #if !defined(BOOL) &amp;&amp; !defined(_OBJC_OBJC_H_) typedef int BOOL; </code></pre> <hr> <p><strong>UPDATE:</strong> the Cygwin folks <a href="http://article.gmane.org/gmane.os.cygwin/105517" rel="nofollow noreferrer">have a TODO for this issue</a>, but it's several months old now. In case that's too long to wait, you can fake it in the meantime:</p> <pre><code>#! /bin/bash # run from the libiodbc build directory gcc -shared -o cygiodbc-2.dll \ -Wl,--out-implib=libcygiodbc-2.dll.a \ -Wl,--export-all-symbols \ -Wl,--enable-auto-import \ -Wl,--whole-archive iodbc/.libs/libiodbc.a \ -Wl,--no-whole-archive gcc -shared -o cygiodbcinst-2.dll \ -Wl,--out-implib=libcygiodbcinst-2.dll.a \ -Wl,--export-all-symbols \ -Wl,--enable-auto-import \ -Wl,--whole-archive iodbcinst/.libs/libiodbcinst.a \ -Wl,--no-whole-archive cp cygiodbc{,inst}-2.dll /bin </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload