rayh...@yahoo.com
unread,Apr 27, 2012, 11:25:10 AM4/27/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I used to do this using Borland C but no longer have that machine. I
have been told that the free Microsoft compiler will work, but I am a
Unix/Linux person and would prefer to use gcc on the Windows
machine(s) for compilation.
Compiling the user-defined-function source works fine (I have
appropriate __cdecl defined for the functions just as needed in
Borland's compiler without __export). However linking the DLL is not
so good - the problem appears to be in using the firebird libraries. I
have both the library and dll versions of both in my current working
directory (for now - till I get it working, then I will try using the
"-L" option ....). From what I can see, gcc does NOT like these
libraries.
Below is the command as entered on the PC and the error follows.
E:\ray\vetadmin\UDF>gcc -shared -o vetAdmin.dll udf.o ^
More? -Wl,--out-implib=libvetAdmin.dll.a ^
More? -Wl,--export-all-symbols ^
More? -Wl,--enable-auto-import ^
More? -Wl,--whole-archive fbclient_ms.lib ^
More? -Wl,--whole-archive ib_util_ms.lib
fbclient_ms.lib: member fbclient_ms.lib(fbclient.dll) in archive is
not an object
collect2: ld returned 1 exit status
I also know that before the final compile and build with Borland I had
to use the
"implib" command (NO idea why) and it is not part of the gcc version
(I think).
Does anyone know how to link using someone elses .lib files (C++
based)??