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 Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3C672DDA.2080902@ece.gatech.edu> Date: Sun, 10 Feb 2002 21:35:06 -0500 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: tmii AT mbnet DOT fi CC: cygwin AT cygwin DOT com Subject: Re: "Best" way to build a DLL? References: <21W5184CAEB3VLIS65OJ64IC74WUNK DOT 3c658c3a AT middlevalue> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Take a look at the new examples in the dllhelpers. I've added four new examples for building DLLs using libtool and friends. --Chuck Nousiainen wrote: > This seems to be the most complicated thing .. building a DLL file. So, > what is the best and recommended way to do the job using recent > cygwin tools? > > I've read autobook > (http://sources.redhat.com/autobook/autobook/autobook_toc.html) and > it gives some good advice (I'm using autotools in my project), > though there are some problems I've encountered. It recommends > using _LTLIBRARIES and libtool to build DLL, and as far as I know > the building process of a DLL file is already integrated in gcc and > ld, so is the document outdated? (I have to use both C and C++ > code in my project, and when specifying AC_PROG_CXX in configure.in > file the configure script doesn't succeed, because it tries to > execute a file called ltconfig which doesn't exist. I really don't > have a clue what to do here...) Dllhelpers > (http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/index.html) > show another, simple way (using the new dll features of ld) to > build the file and it is the only way I have managed to build a > working DLL. However, I don't have an idea how to get this working > smoothly with autotools. > > So, what should I do? I'd appreciate if someone gave me an example > of the configuration files for autotools (Makefile.am and > configure.in). -- 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/