wj4@prism.gatech.EDU (JOYE,WILLIAM A) (08/09/89)
I have a problem with pre-compiled MPW 3.0 C ToolBox header files. Using the #pragma dump and #pragma load as outlined in MPW C page 41. Works great for standard C headers, but I get weird errors for certain Mac ToolBox header files ( ie controls, retrace, windows ). I've tried other compile options ( -sym on, off, -r ). I get the same errors. Has anyone else found problems? Thanks bill joye -- JOYE,WILLIAM A Georgia Institute of Technology, Atlanta Georgia, 30332 uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!wj4 Internet: wj4@prism.gatech.edu
topping@pansy.cis.ohio-state.edu (brian e topping) (08/09/89)
I have had a lot of problems with #pragma [load|dump] also. Mostly with load. It seems that C freaks if there are command line defines (-d option) in place that werent there at dump time. I use load & dump in a file I call "includes.h", which is a slightly modified version of Dave Burnards "LOADDUMPDEMO.h". Depending on #defines, it will either use or create a dumpfile. I modified mine so that it will always use the dumpfile unless the makefile determines the dump is out of date, and then recompiles it with the -c option, so an empty object file is produced. If anybody wants this, send email. It really helps. I don't know that I have found a pattern to the errors yet, and the one I usually get (can't remember right now) is so cryptic that I am not sure that I understand it. Why didn't Apple put an explanation for these errors in an appendix of the C manual? Don't say to reduce duplication costs, cause all of the include files that used to be in the back of the manual are no more. Brian Topping <topping@cis.ohio-state.edu>
amanda@intercon.uu.net (Amanda Walker) (08/09/89)
Well, I use a dump file of *all* of the Mac header files all the time, as well as command-line definitions, and so on, without a problem. However, this leads to a big symbol table, and MPW C gets annoyed with you if you are running vanilla MPW 3.0. There's this little note on pages 349 & 350 of the MPW 3.0 environment manual (in Chapter 12: "Writing an MPW Tool") that describes how to increase the amount of stack space that the shell reserves for tools. The default is 20K. I increased mine to 128K, and suddenly all sorts of things became much less bomb-prone... This is not to say that MPW C 3.0 is reliable, though. I am truly amazed that Apple calls it a "release" version. Grumble. -- Amanda Walker InterCon Systems Corporation -- amanda@intercon.uu.net | ...!uunet!intercon!amanda