|
From: David R. <dr...@sa...> - 2003-03-28 15:14:45
|
Arghh! - yes, I'd forgotten about the capitalization rules - -- thanks for the gentle reminder. Wasn't familiar with the 'nm' command - thanks for that also. Cheers, Dave On Thursday, March 27, 2003, at 12:14 PM, Jim Ingham wrote: > David, > > Tcl is finding the shared library, if it didn't you would get a > different error. BUt Tcl is not able to initialize the library because > it can't find the initialization functions it expects. > > The way Tcl loads a shared library extension is it takes the name of > the shared library (or the package name if you have passed that into > "package require"), upper-cases the first letter, lower-cases all the > others, adds _Init and looks up that symbol and runs the function. > > A common mistake is to forget the weirdo capitalization rules (which > were invented to get around non-case-sensitive file systems). > > Does your library indeed define Crax_Init and Crax_SafeInit functions? > And are they exported? > > You can use > > nm /Users/drobin/Library/Tcl/CRAX/CRAX.dylib > > You should see a "T" symbol (exported text) for both of these. > > Jim > > On Thursday, March 27, 2003, at 10:51 AM, David Robinson wrote: > >> Okay I realize that this is going to be a rather vague question and I >> apologize in advance but I'm not sure how to approach this. >> >> We've succeeded in building a Tcl extension in a fashion similar to >> TclSpeech (called CRAX). However, when we execute 'package require >> CRAX' the following dump appears in the Wish console: >> >> ------------------------------------------------------- >> 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 >> Tc...@li... >> https://lists.sourceforge.net/lists/listinfo/tcl-mac >> > -- > Jim Ingham ji...@ap... > Developer Tools > Apple Computer > > |