delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/13/07:33:41

From: earnie_boyd AT hotmail DOT com (Earnie Boyd)
Subject: mingw32 - noncygwin32 gcc - libwinserve.a
13 Oct 1997 07:33:41 -0700 :
Message-ID: <19971013135827.10624.qmail.cygnus.gnu-win32@hotmail.com>
To: colin AT bird DOT fu DOT is DOT saga-u DOT ac DOT jp
Cc: gnu-win32 AT cygnus DOT com

Colin,

I have ported rman-3.0.3a12 using cygwin32 without much ado.  I have 
ported mingw32 and gcc without the cygwin layer and "for grins" tried to 
port rman-3.0.3a12 vanilla WNT3.51.  I used the object file rman.o from 
the cygwin32 build and try to create rman.exe.  I have the paths set so 
that none of the gnuwin32 paths are searched.

I resolved undefined references by adding the following libraries:

   -lg -liberty -lwinserve

   libg.a took care of a lot of _impure_ptr and __swbuf references.

   libiberty.a took care of the __progname reference introduced by 
libg.a.

   libwinserve.a took care of the _sbrk reference.

Now I have an executable without the cygwin.dll reference.  However, 
when I execute I get an this error "The dynamic link library 
winserve.dll could not be found in the specified path...".

The final command line to build rman.exe is "gcc -O2 -finline-functions 
-o rman.exe rman.o -liberty -lg -lwinserve -v".

The -v returns:

 ld -o rman.exe C:\users\bcoeeb0\mingw32\lib\crt0.o 
-LC:\users\bcoeeb0\mingw32\lib\gcc-lib\i386-mingw32\2.7.2.1 
-LC:\users\bcoeeb0\mingw32\lib\gcc-lib -LC:\users\bcoeeb0\mingw32\lib 
-LC:\users\bcoeeb0\mingw32\win32\lib -L. rman.o -liberty -lg -lwinserve 
-lmingw32 -lgcc -lmoldname -lcrtdll -lkernel32 -lmingw32 -lgcc 
-lmoldname -lcrtdll



What do I need to do that I'm not doing?  Is what I am trying to do an 
impossibility?

Thanks,
-        \\||//
---o0O0--Earnie--0O0o----
-earnie_boyd AT hotmail DOT com-
------ooo0O--O0ooo-------


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
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