delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/23/12:34:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 23 Nov 2004 12:36:20 -0500
From: Jason Tishler <jason AT tishler DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: Using Sybase DLLs from Cygwin apps
Message-ID: <20041123173620.GA1264@tishler.net>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1101230373 DOT 3390 DOT 59 DOT camel AT localhost DOT localdomain>
Mime-Version: 1.0
In-Reply-To: <1101230373.3390.59.camel@localhost.localdomain>
User-Agent: Mutt/1.4.1i
X-IsSubscribed: yes

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 AT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019