Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: From: "Andrej Falout" To: Subject: undefined reference to `_dll_a_iname' using dllwrap Date: Sun, 10 Feb 2002 17:51:50 +1300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <21W5184CAEB3VLIS65OJ64IC74WUNK.3c658c3a@middlevalue> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Importance: Normal Hello *, I have a dll (libSQL_nosql.dll), that gets loaded in run-time, with dlopen(). I cannot link this one. This DLL uses some functions in another DLL (-laclshared = libaclshared.dll), that is always linked with client program (.exe) via it's export library (libaclshared.dll.a), and with first dll (libSQL_nosql.dll), because it uses functions from it. This one (-laclshared) links ok, using same make rules. My first problem is that when I try to link libSQL_nosql.dll, I get undefined reference to `libaclshared_dll_a_iname', but have no idea who or where is supposed to define it. My second problem is undefined reference to `_nm__status'; as you can see below, __imp__status is auto-imported. What the hack is `_nm__status' doing then? Output: dllwrap --driver-name gcc --def libSQL_nosql.def -o libSQL_nosql.dll nosql.o -L. ./.. -laclshared Warning: resolving _status by linking to __imp__status (auto-import) Warning: resolving _sqlca by linking to __imp__sqlca (auto-import) fu000001.o(.idata$3+0xc): undefined reference to `libaclshared_dll_a_iname' fu000002.o(.idata$3+0xc): undefined reference to `libaclshared_dll_a_iname' fu000004.o(.idata$3+0xc): undefined reference to `libaclshared_dll_a_iname' fu000005.o(.idata$3+0xc): undefined reference to `libaclshared_dll_a_iname' fu000006.o(.idata$3+0xc): undefined reference to `libaclshared_dll_a_iname' nmth000000.o(.idata$4+0x0): undefined reference to `_nm__status' nmth000003.o(.idata$4+0x0): undefined reference to `_nm__sqlca' collect2: ld returned 1 exit status dllwrap: gcc exited with status 1 I did a RTFM and tried searching for _a_iname without success. Your help is very much appreciated, Yours, Andrej Falout, http://www.falout.com/disclaimer.html Visit the OpenSource alternative, Aubit 4gl: http://aubit4gl.sourceforge.net PLEASE NOTE: All HTML email sent to me WILL BE DELETED AUTOMATICALLY WITHOUT READING. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/