From: Daniel A. S. <st...@ic...> - 2001-03-24 01:42:36
|
At 12:01 +1100 on 23/3/01, Steve Cassidy wrote: >- remove the entries under sources and add in your own source files >(*.c), say yes to all projects [[ I get a warning that at least one >file couldn't be added here, but they look like they were??]] note that you probably don't want to add your source files to the "merge" target, i.e. the target w/o PPC or C68k in the name >- add TkStub.lib and TkStubCFM68K.lib from Tcl/Tk:Build to the Tcl >Library section watch out to add these only to the appropriate targets i.e. TkStub.lib to PPC, TkStubCFM68K.lib to C68k >- remove shlb files from Objects (is this right??) no, these entries are generated automatically to match the object files produced by the PPC and C68k targets, to change their names, change names in options "PPC Target" resp "68k Target" >- remove TkStubCFM68K.lib from the PPC project by looking under >"Link Order" and similarly remove the TkStub.lib from the C68K project. I >guess I shouldn't have added them to these projects in the first place. yep, see above >. Warning "ignored: 'exit' in MSL MWRuntimeLibCFM68K >previously defined in MSL C.CFM68K.DLL" >. ditto for 'abort' normal, harmless, due to bad library design on MW's part >. a few undefined references 'floord' 'powd' 'log10d' 'fabsd' see below >. Can't find system include file <Types.r> in padgraph.r > strange, shouldn't happen if you CW is setup properly are you sure you have: * system access paths include {Compiler}:MacOS Support * your MacOS Support folder setup as follows: (the .r files are in RIncludes) MacOS Support: Universal: Interfaces: AIncludes: CIncludes: ComponentIncludes: PInterfaces: RIncludes: Libraries: Classic68kLibraries: PPCLibraries: StubLibraries: >- in the project settings for the PPC target, modify: > - the ppc target to padgraphPPC.shlb > - the prefix file under C/C++ Language to MW_padgraphHeaderPPC > - in the PPC PEF section, chagen the fragment name to padgraph > yep, see above >- do the same for the 68K target and for the overall target (which >merges the two libraries into a FAT one). but given that you removed the object entries in the project, it probably doesn't anymore... to fix this, go into the targets panel, click on the disclosure triangle for your merge target and click in the column below the chain-link icon for both of the italicized lines for the PPC and 68k targets >- added an explicit reference to the directory containing Types.r and >SysTypes.r in the "System Paths" of both PPC and 68K projects. Gets rid >of that error. see above, shouldn't need to do that, but it will do the trick >- all errors seem to be in the 68K version, do I need to explicitly >include the 68K math library in the project (ie. more than just >MathLib?) no, this is due to another screwup on MW's part, I've explained the fix in my Tcl/Tk 8.3.2p1 distro, in the file (Pro6 Build Support):CW Pro6 changes, I've reproduced the relevant instructions for your problem below... - in MacOS Support:Libraries:MacOS 68K:MathLib68K:(Projects):MathLibCFM68K.MTarg.mcp enable CFM68k->ForceIndirectAccess for both targets and rebuild That should do it, hope everything works now Cheers, Daniel -- ** Daniel A. Steffen ** "And now to something completely ** Department of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |