| delorie.com/archives/browse.cgi | search |
| 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 |
| Message-ID: | <41A702DC.5000708@familiehaase.de> |
| Date: | Fri, 26 Nov 2004 11:18:04 +0100 |
| From: | "Gerrit P. Haase" <gerrit AT familiehaase DOT de> |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910 |
| MIME-Version: | 1.0 |
| To: | Michael Peppler <mpeppler AT peppler DOT org> |
| CC: | cygwin AT cygwin DOT com |
| Subject: | Re: Using Sybase DLLs from Cygwin apps |
| References: | <1101230373 DOT 3390 DOT 59 DOT camel AT localhost DOT localdomain> |
| In-Reply-To: | <1101230373.3390.59.camel@localhost.localdomain> |
| X-IsSubscribed: | yes |
Michael Peppler wrote:
> [ Note - I'm a Unix/linux person and know very little about Windows ]
>
> 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:
>
> cd $SYBASE/OCS-12_5/lib
> for i in libblk libcs libct; do
> echo "EXPORTS" >${i}.def
> nm ${i}.lib | grep 'T _' | sed 's/.* T _//' >>${i}.def
> dlltool --dllname ${i}.dll --def ${i}.def --output-lib ${i}.a
> done
>
> This generates what looks like valid .a files, *but* they are all with
> non-decorated symbols, and of course the link phase fails.
>
> Is there a way to direct the linker to match up the _ct_xxx AT y symbols
> with the corresponding _ct_xxx entries in the .a/.dll?
Have you tried the ld flag '--enable-stdcall-fixup'?
Gerrit
--
=^..^=
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |