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/