Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Tue, 23 Nov 2004 12:28:28 -0500
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Using Sybase DLLs from Cygwin apps
Message-ID: <20041123172828.GB9927@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
References: <1101230373.3390.59.camel@localhost.localdomain>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1101230373.3390.59.camel@localhost.localdomain>
User-Agent: Mutt/1.4.1i

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.
>
>Is there a way to direct the linker to match up the _ct_xxx@y symbols
>with the corresponding _ct_xxx entries in the .a/.dll?
>
>Building sqsh without the __stdcall calling convention results in a
>successful link, but the actual calls into the library fails (obviously
>because the caller and callee don't use the same calling conventions.)
>
>Any ideas and suggestions would be appreciated.

Have you tried just linking directly to the DLL itself, i.e., use the DLL
on the command line.  This should work for non-data references.

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

