Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 23 Nov 2002 11:02:20 +0100 From: "Gerrit P. Haase" Organization: Esse keine toten Tiere X-Priority: 3 (Normal) Message-ID: <1573001262.20021123110220@familiehaase.de> To: cygwin AT cygwin DOT com Subject: Re: The Black Art of DLL Creation (revisited) In-Reply-To: <121531094763.20021122232353@familiehaase.de> References: <121531094763 DOT 20021122232353 AT familiehaase DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Sender: 320081107336-0001 AT t-dialin DOT net Hallo, [...] > passes it to ld: > $command ="$CC -shared -o $dllname"; > # $command .=" --verbose" if $verbose; > $command .=" -Wl,--output-def=$libname$DEF_EXT" if $DEF_EXT; > $command .=" -Wl,--output-exp=$libname$EXP_EXT" if $EXP_EXT; > $command .=" -Wl,--out-implib=$libname.dll$LIB_EXT" if $LIB_EXT; > $command .=" -Wl,--export-all-symbols" if $EXPORT_ALL; > $command .=" -Wl,--enable-auto-import -Wl,--stack,8388608"; # always > There should be correct .def and .exp files then. This is also not correct...it seems ld doesn't support creating .exp libraries or it is done in a different way? So: $command .=" -Wl,--output-exp=$libname$EXP_EXT" if $EXP_EXT; doesn't work with gcc -shared. Gerrit -- =^..^= -- 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/