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
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