Re: [MACTCL] Linking to Tcl library
by Jim Ingham other posts by this author
Mar 27 2003 7:25PM messages near this date
[MACTCL] Linking to Tcl library
|
[MACTCL] menu accelerators
Cynthia,
The Tcl & Tk libraries are shipped in Mac OS X framework form. The
installer places the Tcl & Tk frameworks on the standard framework path
in /Library/Frameworks, so you should be able to just do:
$ cat main.c
#include <Tcl/tcl.h>
int
main ()
{
Tcl_CreateInterp ();
return 0;
}
$ gcc -g -O0 -framework Tcl -o testit main.c
But if you want to build extensions and not just a shell that uses Tcl,
then it is better to start with a TEA style project. Daniel suggested
the Tclspeech project on sourceforge on the list a few days ago:
http://sourceforge.net/projects/tclspeech
That seems like a pretty simple example.
Jim
On Wednesday, March 26, 2003, at 05:42 PM, cynthia bruyns wrote:
> Hello, I just downloaded TclTkAqua and ran the installer from the
> unpacked disk image. Now I want to make a test program to like to the
> libraries, does anyone have an example of what the preferred linking
> library is called, where it exists, etc. i.e. A Makefile snippet or
> even a example program. My distribution didnt come with any, so its
> possible there were more steps to the installation that I missed.
> Cheers, CDB
--
Jim Ingham jingham@[...].com
Developer Tools
Apple Computer
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Tcl-mac mailing list
Tcl-mac@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-mac
Thread:
cynthia bruyns
Jim Ingham
|