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: <20040831223210.73946.qmail@web80404.mail.yahoo.com> Date: Tue, 31 Aug 2004 15:32:10 -0700 (PDT) From: Jingzhao Ou Subject: Compiling TCL C extensions using Cygwin gcc To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Dear all, I tried to compile a simple Tcl C extension using Cygwin gcc. I use the following commands: gcc -shared -ltcl -L/lib random.o I got the following error messege: random.o(.text+0x31):random.c: undefined reference to `_Tcl_WrongNumArgs' random.o(.text+0x5e):random.c: undefined reference to `_Tcl_GetIntFromObj' random.o(.text+0x98):random.c: undefined reference to `_Tcl_GetObjResult' random.o(.text+0xad):random.c: undefined reference to `_Tcl_SetIntObj' random.o(.text+0xe2):random.c: undefined reference to `_Tcl_PkgRequire' random.o(.text+0x11a):random.c: undefined reference to `_Tcl_CreateObjCommand' random.o(.text+0x135):random.c: undefined reference to `_Tcl_PkgProvide' collect2: ld returned 1 exit status I can see that tcl.h is located at /usr/include. Also, libtcl84.a and libtclstub84.a are located at /lib. Can any one kindly help me out? Thanks a lot! Best regards, Jingzhao -- 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/