This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: -mno-cygwin and "undefined reference to `_impure_ptr'"?
- From: Ronald Landheer-Cieslak <ronald at landheer dot com>
- To: Lester Ingber <ingber at ingber dot com>
- Cc: cygwin at cygwin dot com
- Date: Thu, 10 Apr 2003 16:33:05 +0200 (CEST)
- Subject: Re: -mno-cygwin and "undefined reference to `_impure_ptr'"?
On Thu, 10 Apr 2003, Lester Ingber wrote:
> gcc -shared -mno-cygwin -o ${module}.dll \
produce the DLL: ^^^^^^^^^^^^^
> -Wl,--out-implib=lib${module}.dll.a \
the implib: ^^^^^^^^^^^^^^^^^^
you can produce a def file as well if you like:
-Wl,--output-def=$module.def
so I see no reason for dlltool.
I.e.: I maintain a local port of PCRE for MinGW & Cygwin where I work
(the packaged version is hopelessly out of date) and I don't use dlltool
for it - but I do produce .lib files which are used with MSVC (using
MinGW) and .a files for both Cygwin and MinGW - as well as .def files.
But hey: "quand on aime, on ne compte pas :)"
rlc
--
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/