Using Sybase DLLs from Cygwin apps

Jason Tishler jason@tishler.net
Tue Nov 23 17:34:00 GMT 2004


Michael,

On Tue, Nov 23, 2004 at 06:19:33PM +0100, Michael Peppler wrote:
> I'm trying to build sqsh under Cygwin and I'm running into a problem
> with decorate vs. non-decorated library symbols.
> 
> Sybase uses the __stdcall calling convention for its libraries under
> Windows, so gcc generates symbols like _ct_results@8.
> 
> I've gone through the Cygwin docs on linking with Windows DLLs, and I've
> generated three .def files and .a files using the following:

See below...

> [snip]
>
> Any ideas and suggestions would be appreciated.

Why not use FreeTDS (http://www.freetds.org/) instead of the Sybase's
Win32 libraries?  IIRC, both sqsh and FreeTDS build OOTB under Cygwin.
FWIW, I have used Cygwin sqsh/FreeTDS successfully with Microsoft SQL
Server.  However, YMMV with Sybase...

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list