ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-mac
tcl-mac
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 didn’t 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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved