www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: problem when linking against Sybase dll with cygwin |
Date: | Mon, 2 Oct 2006 10:46:34 +0100 |
Message-ID: | <04c201c6e607$a574e9a0$a501a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <20061002092209.90418.qmail@web26608.mail.ukl.yahoo.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
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 |
On 02 October 2006 10:22, Benh LIEU SONG wrote: > I'm trying to compile some libraries of us which need Sybase dll. > I found that It was better to link agains import libraries, which can be > generated when one has .lib files. That's what I did, following the > procedure described in http://www.cygwin.com/cygwin-ug-net/dll.html > (Linking against DLL). > My def file has reference to functions which end with @n where n is number > so linking fails (same as Michael Peppler). I redefined _MSC_VER=800 and > finally got as result : > spg_sybase.o:spg_sybase.c:(.text+0xa50): undefined reference to `dbbind AT 20' > spg_sybase.o:spg_sybase.c:(.text+0xc68): more undefined references > spg_sybase.o:spg_sybase.c:(.text+0x1716): undefined reference to `dbexit AT 0' > which I can't understand since I *think* (but may be wrong) my .a fil has > same references, or have I got something wrong ? > here is what an nm on my generated .a file outputs : > 00000000 T _dbcmd AT 8 > 00000000 T _dbclropt AT 12 > 00000000 T _dbclrbuf AT 8 How does your linker command-line look? cheers, DaveK -- Can't think of a witty .sigline today.... -- 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 |