From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26134 invoked by alias); 9 Feb 2002 20:55:06 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 26029 invoked from network); 9 Feb 2002 20:55:04 -0000 Received: from unknown (HELO fep06.tmt.tele.fi) (194.251.242.201) by sources.redhat.com with SMTP; 9 Feb 2002 20:55:04 -0000 Received: from middlevalue ([62.71.156.187]) by fep06.tmt.tele.fi (InterMail vM.5.01.03.13 201-253-122-118-113-20010918) with SMTP id <20020209205503.KBPV28545.fep06.tmt.tele.fi@middlevalue> for ; Sat, 9 Feb 2002 22:55:03 +0200 From: Nousiainen To: cygwin@cygwin.com Date: Sat, 09 Feb 2002 12:55:00 -0000 X-Priority: 3 (Normal) Reply-To: tmii@mbnet.fi Message-Id: <21W5184CAEB3VLIS65OJ64IC74WUNK.3c658c3a@middlevalue> Subject: "Best" way to build a DLL? MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" X-Mailer: Opera 6.0 build 1010 X-SW-Source: 2002-02/txt/msg00482.txt.bz2 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/