This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling Tcl C extension using Cygwin gcc


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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]