delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/31/18:08:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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: Tue, 31 Aug 2004 18:08:12 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com, Jingzhao Ou <jasonou AT yahoo DOT com>
To: Jingzhao Ou <jasonou AT yahoo DOT com>
cc: cygwin AT cygwin DOT com, cygwin-apps AT cygwin DOT com
Subject: Re: Compiling Tcl C extension using Cygwin gcc
In-Reply-To: <20040831220426.3591.qmail@web80410.mail.yahoo.com>
Message-ID: <Pine.GSO.4.61.0408311807260.6924@slinky.cs.nyu.edu>
References: <20040831220426 DOT 3591 DOT qmail AT web80410 DOT mail DOT yahoo DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

Wrong list.  Redirected.
	Igor

On Tue, 31 Aug 2004, Jingzhao Ou wrote:

> 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

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019