This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Static linking
- To: gnu-win32 at cygnus dot com
- Subject: Static linking
- From: John Cooper <john at jpsc dot co dot uk>
- Date: Wed, 18 Jun 1997 17:06:35 +0100
- Cc: john at jpsc dot co dot uk
- Organization: JPSC Ltd, UK
- Reply-To: john at jpsc dot co dot uk
I have ported a program to Cygnus, now I am moving to Colin Peters' Minimalist
GNU-Win32 stuff because I don't want to have to deliver more than the .EXE to
my client. My problem is that I was using gettimeofday which I have now tracked
down to libwinserve.a in .../mingw32/win32/lib, but when I build with
gcc ... -Wl,-Bstatic,-lwinserve,-Bdynamic ... the linker is satisfied, but the
routine isn't pulled into the executable and I get a DLL not found error for
WINSERVE.DLL (which doesn't exist, as far as I can make out the routine I want
is actually in the archive).
I have obviously got the wrong end of the stick vis-a-vis what -Bstatic
actually does, can anyone put me right?
--
John Cooper (JPSC Ltd, UK)
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".