|
From: sub J. <dje...@go...> - 2007-03-07 17:58:47
|
Thanks for this answer. The file tclDecls.h exists on my harddrive
This is the output of the grep
/usr/include/tcl8.3/tclDecls.h:EXTERN char * Tcl_GetString
_ANSI_ARGS_((Tcl_Obj * objPtr));
/usr/include/tcl8.3/tclDecls.h:#ifndef Tcl_GetString
/usr/include/tcl8.3/tclDecls.h:#define Tcl_GetString \
/usr/include/tcl8.3/tcl.h: * or
Tcl_GetString to get a pointer to the
/usr/include/tcl8.4/tclDecls.h:EXTERN char * Tcl_GetString
_ANSI_ARGS_((Tcl_Obj * objPtr));
/usr/include/tcl8.4/tclDecls.h:#ifndef Tcl_GetString
/usr/include/tcl8.4/tclDecls.h:#define Tcl_GetString \
/usr/include/tcl8.4/tcl.h: * or
Tcl_GetString to get a pointer to the
grep: /usr/local/include/*.h: No such file or directory
grep: /usr/local/include/tcl*/*.h: No such file or directory
But this file does not get included into /usr/include/tcl.h. It is the
header of version 8.0. In version 8.3/8.4 tclDecls.h gets included in
tcl.h. When I try to run ./configure ----with-tclsh=/usr/bin/tclsh8.4
it still takes the 8.0 header file although the dev packages of the
other versions are installed.
So I gave up and disabled the tcl-wrapper while configuring. Trying to
compile then leads to another error:
libtool: link: only absolute run-paths are allowed
I am still stuck? What am I doing wrong? Should I uninstall the older
tcl-versions?
Jeannette.
On 2/28/07, Haejoong Lee <hae...@ld...> wrote:
> sub Jean wrote:
>
> >Hello,
> >I try to compile the tcl_wrapper of the aglib! When trying to compile the
> >ag.cc in the ag_wrapper/tcl directory it gives me the following error:
> >
> >error: 'Tcl_GetString' was not declared in this scope
> >
> >The file tcl.h is in /usr/include, but there is actually no
> >Tcl_GetString defined. Do I have to use a specific version tclsh? I
> >tried it with 8.0, 8.3 and 8.5. Gives the same error.
> >
> >I simply don't know anymore where to look. Does anyne has an Idea?
> >
> >
>
> Tcl_GetString is found in tclDecls.h on my machine. I think the
> following command will find you where it is declared in most cases.
>
> grep "Tcl_GetString\b" /usr/{,local/}include/{,tcl*/}*.h
>
> This file gets included into tcl.h. So, it should be available once
> tcl.h is successfully included in the ag.cc file.
>
> -Haejoong
>
>
|