From: Jean-Pierre Rosen on
petter_fryklund(a)hotmail.com a �crit :
> This is very strange! Yes, I've downloaded Tcl/Tk 8.4 from
> ActiveState. I use the switches you use, Simon, resulting in
> gnatlink c:\users\petter\ada\tash\apps\plang.ali -g -LC:\Tcl\lib -
> ltcl84 -ltk84 -o c:\users\petter\ada\tash\bin\plang.exe
> This still can not find Tcl_GetRefCount and others similar. I loaded
> Tash once again, but cannot see any differences.
>
This rings a very distant bell...
I seem to remember that you can download Tcl in tasking or non-tasking
version, and that the tasking version does not work with Tash.
--
---------------------------------------------------------
J-P. Rosen (rosen(a)adalog.fr)
Visit Adalog's web site at http://www.adalog.fr
From: Pascal Obry on
sjw a �crit :
> (that's what worked for me; GNAT GPL 2007 is happy with .lib files --
> when did that happen?)

Well it never happened :) The fact is that at some point the GNU binary
utilities were able to read *some* .lib file but there is severe
limitations. Some MS specific sections cannot be linked for example.

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: sjw on
On Jan 21, 8:46 pm, Pascal Obry <pas...(a)obry.net> wrote:
> sjw a écrit :
>
> > (that's what worked for me; GNAT GPL 2007 is happy with .lib files --
> > when did that happen?)
>
> Well it never happened :) The fact is that at some point the GNU binary
> utilities were able to read *some* .lib file but there is severe
> limitations. Some MS specific sections cannot be linked for example.

The GNAT documentation that came with GPL-2007 (Windows) was where I
got this from, there wasn't any limitation mentioned there. Anyway,
it seems we can get away with it with Tcl.
From: Pascal Obry on
sjw a �crit :

> The GNAT documentation that came with GPL-2007 (Windows) was where I
> got this from, there wasn't any limitation mentioned there. Anyway,
> it seems we can get away with it with Tcl.

Well I wrote a good part of the Windows sections. So I know what I'm
talking about :) Are you saying then that the .lib is an import library
(as opposed to plain static library)? In that case yes it should work.

Note also that we recent GNAT versions you can even link directly
against a shared library (.dll) built with the GNU toolset.

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
Is there anyway to obtain a listing of the contents of a .lib file? I
do not understand why I cannot link with same options as Simon, unless
my .lib's are broken in some way. Not that I can understand how that
could happen. Is there any OS service used when linking that is
different between Vista and XP? I tried to link as admin, but was not
better ;-) I will try building on my laptop using XP, but I first need
to upgrade to GPL-2007.

Regards,
Petter