home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / tcl / 2106 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.2 KB  |  36 lines

  1. 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
  2. From: mharriso@digi.lonestar.org (Mark Harrison)
  3. Newsgroups: comp.lang.tcl
  4. Subject: Re: Is there a C++ interface to tcl?
  5. Message-ID: <1992Dec14.151349.10915@digi.lonestar.org>
  6. Date: 14 Dec 92 15:13:49 GMT
  7. References: <1992Dec10.184740.5628@leland.Stanford.EDU>
  8. Organization: DSC Communications Corp, Plano, TX
  9. Lines: 25
  10.  
  11. In article <1992Dec10.184740.5628@leland.Stanford.EDU>
  12. denisb@leland.Stanford.EDU (Denis Bohm) writes:
  13.  
  14. >Is there a C++ interface to tcl?  Maybe just a set of wrapper classes?
  15.  
  16. We were able to do it with these changes:
  17.  
  18. In main.c, put an 'extern "C"' wrapper around the tk header files:
  19.  
  20. extern "C" {
  21. #include "tkConfig.h"
  22. #include "tkInt.h"
  23. }
  24.  
  25. and in tkConfig.h, comment out the select() declaration. (This is on
  26. SunOS, where it seems to conflict with some system declaration.)
  27.  
  28. #if 0
  29. extern int              select _ANSI_ARGS_((int nfds, int *readfds,
  30.                             int *writefds, int *exceptfds,
  31.                             struct timeval *timeout));
  32. #endif
  33.  
  34. -- 
  35. Mark Harrison, mharriso@dsccc.com
  36.