[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: otcl installation!



Robert Ma wrote:
> 
> Sorry to bother you so much
> but after i made some fix in otcl.c
> the problem of isArg disappeared
> but new problem arises
> In fact, i still can't realize what you mean in renaming tclInt.h
> the following is the error message showed..
> i use otcl-1.0a4 & Tcl/Tk 8.2.2
> 
> ###################################################################
> otcl.c:807: warning: passing arg 3 of `Tcl_SetVar' makes pointer from
> integer wi
> thout a cast
> ld -shared -o libotcl.so otcl.o
> rm -f libotcl.so
> gcc -o otclsh  -g -O2 -I. -I/usr/local/include -I../tcl8.2/generic
> -I/include  o
> tclAppInit.c \
> -L. -lotcl -L/usr/local/lib -ltk8.2 -L../tcl8.2/unix -ltcl8.2
> -L/usr/X11R6/lib -
> lXext -lX11  -lnsl -ldl -lm
> ./libotcl.a(otcl.o): In function `ListProcDefault':
> /otcl-1.0a4/otcl.c:803: undefined reference to `TclGetStringFromObj'
> ./libotcl.a(otcl.o): In function `ListProcBody':
> /otcl-1.0a4/otcl.c:842: undefined reference to `TclGetStringFromObj'
> collect2: ld returned 1 exit status
> make: *** [otclsh] Error 1
> 

I don't know if this helps, but I seem to remember seeing a similar bug.
I found that in tcl8.2 they seemed to have renamed TclGetStringFromObj
as Tcl_GetStringFromObj

Try and see if this fixes the bug.

Matt

-- 
Matthew Roughan                  
Software Engineering Research Centre, RMIT University
110 Victoria St, Carlton, Vic 3053,  AUSTRALIA
Ph:    +61 3 9925 4093      
Fax:   +61 3 9925 4094     
Email: [email protected]     
WWW:   http://www.serc.rmit.edu.au/~matt