For Programmers: Free Programming Magazines  


Home > Archive > Tcl > January 2008 > Errors when Linking Ada program with TASH









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Errors when Linking Ada program with TASH
petter_fryklund@hotmail.com

2008-01-22, 7:36 pm

I am trying to use TASH - Tcl Ada SHell, Ada bindings to Tcl but I get
unresolved references when linking: Tcl_GetRefCount,
Tcl_CallDecrRefCount,
Tcl_CallIncrRefCount, Tcl_GetObjTypeName and Tcl_PrintObj, neither of
which are present in tcl84.lib or tcl85.lib. Where can I find these?

Regards,
Petter

schlenk

2008-01-23, 7:25 pm

petter_frykl...@hotmail.com wrote:
> I am trying to use TASH - Tcl Ada SHell, Ada bindings to Tcl but I get
> unresolved references when linking: Tcl_GetRefCount,
> Tcl_CallDecrRefCount,
> Tcl_CallIncrRefCount, Tcl_GetObjTypeName and Tcl_PrintObj, neither of
> which are present in tcl84.lib or tcl85.lib. Where can I find these?


They are at least not listed in the Tcl man pages, probably their some
kind of relicts from the Ada wrapper used.
Might be custom wrappers for Tcl_DecRefCount, Tcl_IncrRefCount, and
some hackish introspection on Tcl_Obj->refCount and probably similar
for the type field and a dump method, at least the names sound like
it.

Michael

petter_fryklund@hotmail.com

2008-01-24, 4:40 am

On 23 Jan, 17:23, schlenk <schl...@uni-oldenburg.de> wrote:
> petter_frykl...@hotmail.com wrote:
>
> They are at least not listed in the Tcl man pages, probably their some
> kind of relicts from the Ada wrapper used.
> Might be custom wrappers for Tcl_DecRefCount, Tcl_IncrRefCount, and
> some hackish introspection on Tcl_Obj->refCount and probably similar
> for the type field and a dump method, at least the names sound like
> it.
>
> Michael


The problem has been solved, see comp.lang.ada. These routines are
functions written in order to eliminate need for C-macros when using
Ada. There are two routines tclmacro.c and tkmacro.c that are used for
this purpose.

Regards,
Petter
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com