delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/06/18/10:05:11

From: john AT jpsc DOT co DOT uk (John Cooper)
Subject: Static linking
18 Jun 1997 10:05:11 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <VA.00000f42.05a10dcc.cygnus.gnu-win32@jpsc.compulink.co.uk>
Reply-To: john AT jpsc DOT co DOT uk
Mime-Version: 1.0
X-Mailer: Virtual Access by Ashmount Research Ltd, http://www.ashmount.com
Original-To: gnu-win32 AT cygnus DOT com
Original-Cc: john AT jpsc DOT co DOT uk
Original-Sender: owner-gnu-win32 AT cygnus DOT com

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019