home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!europa.asd.contel.com!howland.reston.ans.net!usc!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!texsun!digi!mharriso
- From: mharriso@digi.lonestar.org (Mark Harrison)
- Newsgroups: comp.lang.tcl
- Subject: Re: Is there a C++ interface to tcl?
- Message-ID: <1992Dec14.151349.10915@digi.lonestar.org>
- Date: 14 Dec 92 15:13:49 GMT
- References: <1992Dec10.184740.5628@leland.Stanford.EDU>
- Organization: DSC Communications Corp, Plano, TX
- Lines: 25
-
- In article <1992Dec10.184740.5628@leland.Stanford.EDU>
- denisb@leland.Stanford.EDU (Denis Bohm) writes:
-
- >Is there a C++ interface to tcl? Maybe just a set of wrapper classes?
-
- We were able to do it with these changes:
-
- In main.c, put an 'extern "C"' wrapper around the tk header files:
-
- extern "C" {
- #include "tkConfig.h"
- #include "tkInt.h"
- }
-
- and in tkConfig.h, comment out the select() declaration. (This is on
- SunOS, where it seems to conflict with some system declaration.)
-
- #if 0
- extern int select _ANSI_ARGS_((int nfds, int *readfds,
- int *writefds, int *exceptfds,
- struct timeval *timeout));
- #endif
-
- --
- Mark Harrison, mharriso@dsccc.com
-