List Info

Thread: MACOS 9 (Classic) Shared Libraries




MACOS 9 (Classic) Shared Libraries
user name
2007-01-25 15:41:43
Hi all - does anyone remember how to do shared libraries under MAC OS 9 ? I am using Code Warrior 7.1. I have built the ExampleA extension found in sampleextension 0.2.1 but I get an error when trying to load it - the ExampleA_Init function is not being found. I tried to build my own extension called Wpl based by reconfiguring the samepleextension projects and this builds cleanly (well a copy of compiler warnings but no errors). Yet again I get an error when trying to load the extension: couldn't load library "Wpl": MS_ALL_PPC.Shlbcouldn't load library "Wpl_Saf": MS_ALL_PPC.Shlbcouldn't find procedure Wpl_Init Code Warrior creates a "wpl.pi.exp" export file and this does contain Wpl_Init. I am now completely stumped about how to resolve this - I am completely new to Macintosh programming and no, my customer is not ready for an OSX solution :( Any help greatly appreciated regards Julian H J Loaring ps Has anyone got a PPC binary of tclsqlite for MAC OS 9 I can have - I can't get that to build either! ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Tcl-mac mailing list tcl-maclists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tcl-mac
Re: MACOS 9 (Classic) Shared Libraries
user name
2007-01-26 00:15:06
As far as I can remember, the init and term functions had to be modified (in ye olde tyme). I have reopened an old project (with CW 9 though, so there was a conversion applied to it) and I see in the PPC Linker settings panel that the two fields are set like this: Initialization: TclMacInitializeFragment Termination: TclMacTerminateFragment Concerning the exp file, is your setting correct ? at the top of the PPC PEF panel is a popup menu which must be set to "Use export file" if you want the exp file to be taken into account. The first time you build the exp file is written, and it requires a second build to have it eventually used (IIRC). HTH Bernard >Hi all - does anyone remember how to do shared libraries under MAC OS 9 >? I am using Code Warrior 7.1. > >I have built the ExampleA extension found in sampleextension 0.2.1 but >I get an error when trying to load it - the ExampleA_Init function is >not being found. > >I tried to build my own extension called Wpl based by reconfiguring the >samepleextension projects and this builds cleanly (well a copy of >compiler warnings but no errors). Yet again I get an error when trying >to load the extension: > >couldn't load library "Wpl": MS_ALL_PPC.Shlbcouldn't load library >"Wpl_Saf": MS_ALL_PPC.Shlbcouldn't find procedure Wpl_Init > >Code Warrior creates a "wpl.pi.exp" export file and this does contain >Wpl_Init. > >I am now completely stumped about how to resolve this - I am completely >new to Macintosh programming and no, my customer is not ready for an OSX >solution :( > >Any help greatly appreciated >regards >Julian H J Loaring > > >ps Has anyone got a PPC binary of tclsqlite for MAC OS 9 I can have - >I can't get that to build either! > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Tcl-mac mailing list tcl-maclists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tcl-mac
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )