This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using Sybase DLLs from Cygwin apps


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]