Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <39B83913.BCFCA86F@ece.gatech.edu> Date: Thu, 07 Sep 2000 20:55:47 -0400 From: "Charles S. Wilson" X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Robert Collins CC: "Gary V. Vaughan" , Earnie Boyd , cygwin AT sources DOT redhat DOT com Subject: Re: libtool References: <20000907133430 DOT 25505 DOT qmail AT web119 DOT yahoomail DOT com> <20000907185550 DOT O7695 AT demon DOT co DOT uk> <01d501c0190e$fc28e930$f7c723cb AT lifelesswks> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Robert Collins wrote: > gcc -shared -g -O2 -Wall,--enable-auto-image-base,--out-imp-lib=.libs/libnam > e.dll.a -o .libs/libname.dll -export-dynamic a.lo b.lo c.lo I think this should be: gcc -shared -g -O2 -Wall -Wl,--enable-auto-image-base -Wl,--out-implib=.lib/libname.dll.a -Wl,--export-all-symbols -o ./libs/libname.dll a.lo b.lo c.lo That is, '-Wl,--out-implib=' not '-Wl,--out-imp-lib' '-Wl,--export-all-symbols' not '-export-dynamic' This second one is why you had no exports -- the linker never saw the '--export-dynamic' command because gcc ate and ignored it (plus, even if the linker saw '--export-dynamic' it would ignore it, too, because it's the wrong command). > > built a dll quite happily from standard sources except there were no > exports... > > 2) the .def files format was broken > -> I haven't looked at this yet If you want ld to write the def-file to disk, then you need '-Wl,--output-def=.libs/libname.def' --Chuck -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com