Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using private interpreter with C++

Status
Not open for further replies.

mfatyga

Programmer
Nov 11, 2004
2
US
Hi,
I have to maintain a Tcl/Tk application, and I am quite
new to Tcl/Tk. This application uses a mechanism of "private
interpreter" using Tcl_CreateCommand() to associate Tcl Comands with "C" functions. For various reasons, I would like to convert to C++ (I have a large body of "C" code, and I would like to start using C++ with it). I did successfully build the private interpreter (or so I thought) with a g++ compiler (all of this is under Solaris). I get no errors, and the executable is written. However, when I try to invoke it, I get an error "file not found". I can get it all to work fine if I change one line in my make, reverting to "C" compiler (gcc instead of g++). I hope I am missing some extern "C" declarations around Tcl functions. Before I start experimenting, I am hoping someone saw this problem before. Advance, thanx,
mirek fatyga
 
actually, i might be missing a library. The message complains about fbstdc++.so2.8.1.1 not being there. Does this sound familiar to anyone?
 
No. Please try comp.lang.tcl through the google interface or through your news agent.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top