|
From: petter_fryklund on 23 Jan 2008 07:30 On 22 Jan, 23:15, sjw <simon.j.wri...(a)mac.com> wrote: > On Jan 22, 7:20 pm, petter_frykl...(a)hotmail.com wrote: > > > I tried the nm tool. I had not noticed carefully enought, but was only > > missing a few routines: Tcl_GetRefCount, Tcl_CallDecrRefCount, > > Tcl_CallIncrRefCount, Tcl_GetObjTypeName and Tcl_PrintObj, neither of > > which are present in tcl84.lib so it seems like TASH needs another > > Tcl? > > Light has dawned. > > If you look in src/ of the tcladashell code you'll find two C files, > tclmacro.c and tkmacro.c. Compile these with gcc (the one build in to > GNAT would be best), > gcc -c -g -O2 -IC:/Tcl/include tclmacro.c > gcc -c -g -O2 -IC:/Tcl/include tkmacro.c > and include the resulting objects in your link. > > The top of tclmacro.c says > /* > * tclmacro.c -- > * > * This file encapsulates calls to all tcl.h macro functions into C > * function calls. These can then be called from Ada. This avoids > * having to translate the macro. > > --S > > (by the way, ActiveState only seem to have the threaded version: the > one I have is ActiveTcl8.4.17.0.283511-win32-ix86-threaded.exe) I tried this quickly while having lunch at home, but first found that stdio.h was missing. I wouldn't dream of putting one there ;-), so I investigated if someone else had. There is only one, the one that came with Tcl. But when I use that one, I get tons of other errors. I am thinking of writing my own macro elimination using Ada. Is it wise? Regards, Petter
From: Pascal Obry on 23 Jan 2008 07:44 petter_fryklund(a)hotmail.com a �crit : > I tried this quickly while having lunch at home, but first found that > stdio.h was missing. Which compiler are you using? GNAT comes with GCC/C and all the C include files on Windows. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
From: petter_fryklund on 23 Jan 2008 07:58 On 23 Jan, 13:44, Pascal Obry <pas...(a)obry.net> wrote: > petter_frykl...(a)hotmail.com a écrit : > > > I tried this quickly while having lunch at home, but first found that > > stdio.h was missing. > > Which compiler are you using? GNAT comes with GCC/C and all the C > include files on Windows. > > Pascal. > > -- > > --|------------------------------------------------------ > --| Pascal Obry Team-Ada Member > --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE > --|------------------------------------------------------ > --| http://www.obry.net > --| "The best way to travel is by means of imagination" > --| > --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595 I downloaded GPL-2007 from libre. Regards, Petter
From: Pascal Obry on 23 Jan 2008 08:07 petter_fryklund(a)hotmail.com a �crit : > I downloaded GPL-2007 from libre. So you have all include files into <gnat_root>/pentium-mingw32msv/include. You may try setting C_INCLUDE_PATH to point to this directory. But GCC should find it but itself. Are you sure the gcc used is the one from GNAT GPL 2007? Be sure the PATH to this compiler comes first if you have multiple compiler installed. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
From: petter_fryklund on 23 Jan 2008 08:17
On 23 Jan, 14:07, Pascal Obry <pas...(a)obry.net> wrote: > petter_frykl...(a)hotmail.com a écrit : > > > I downloaded GPL-2007 from libre. > > So you have all include files > into <gnat_root>/pentium-mingw32msv/include. > > You may try setting C_INCLUDE_PATH to point to this directory. But GCC > should find it but itself. Are you sure the gcc used is the one from > GNAT GPL 2007? Be sure the PATH to this compiler comes first if you have > multiple compiler installed. > > Pascal. > > -- > > --|------------------------------------------------------ > --| Pascal Obry Team-Ada Member > --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE > --|------------------------------------------------------ > --| http://www.obry.net > --| "The best way to travel is by means of imagination" > --| > --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595 I will try this when I get home... I now remember some cryptic statement about things could go bad if installing 2007 over 2006. SHould have been mre careful :( Regards, Petter |