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 Message-ID: <000901c397eb$51de7cb0$93089942@BEDROOM> From: "jim" To: Subject: little help with dll Date: Tue, 21 Oct 2003 11:52:22 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Hi - i'm a newbie trying to create a dll for cygwin with gcc mingw for swig so i can convert c++ into a tcl module. $LIBS and $LIBPATH are 2 settings that i dont where/what to specify. is this quote true also? "Note that if you build your DLL as a Cygwin-linked DLL, you should really load it from a Cygwin-linked Tcl/Tk shell as well to avoid certain problems. If you're using Cygwin b20.x, it already comes with tclsh/wish etc, and it's a non-issue then." below is documentation from swig tutorial to help clarify any input/examples and links you can provide to help me come up with a solution would be great. thank you, marvin Q: How do I create DLLs using Cygwin? When creating DLLs in Windows there cannot be any unresolved symbols. Thus all the libraries you need to link against must be specified using the -l commandline option. Most of the SWIG target languages will need linking against the language library. In general use: For C, $ gcc -c $SRCS $ gcc -shared $OBJS $LIBPATH $LIBS -o module.dll For C++ $ c++ -c $SRCS $ c++ -shared $OBJS $LIBPATH $LIBS -o module.dll where, $SRCS: C/C++ sources $OBJS: compiled .o files $LIBPATH: Path to language library, e.g. -L/usr/lib/python2.2/config. Use the path to the .a file in preference to the .dll file. $LIBS: Language library, e.g. -lpython2.2 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/