home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!enterpoop.mit.edu!eru.mt.luth.se!kth.se!dront.nada.kth.se!d88-jwa
- From: d88-jwa@dront.nada.kth.se (Jon Wtte)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: THINK C Primer Code Problem...
- Message-ID: <1993Jan4.161455.19596@kth.se>
- Date: 4 Jan 93 16:14:55 GMT
- References: <1993Jan4.153017.1397@utkux1.utk.edu>
- Sender: usenet@kth.se (Usenet)
- Organization: Royal Institute of Technology, Stockholm, Sweden
- Lines: 53
- Nntp-Posting-Host: dront.nada.kth.se
-
- In <1993Jan4.153017.1397@utkux1.utk.edu> danny@martha.utcc.utk.edu (Danny William McCampbell) writes:
-
- >sure I typed it in just like the book. When I try to run it gives me
- >a Link Error::Undefined Button. I have never seen this error before.
-
- Are you sure about the spelling? C is case sensitive.
- However, see below:
-
- >Could someone give me some insight on this. I ran precompile on it
- >and it says that blackColor is undefined in the statement
-
- >gFillColor = blackColor
-
- >blackColor occording to IM Vol. 1 is a global all ready defined in the
- >ROMS. What is happening here? I have MacTraps in the project just to
-
- The ROM can hardly define symbols for your compiler...
-
- And _Button is an inline pascal call that actually is not in
- MacTraps; it's just inline code.
-
- ALl this makes me believe you're not including MacIncludes,
- or you accidentally damaged or misplaced it.
-
- Oh, and a word of asvice to everyone:
-
- 1) Open up the file "Mac #Includes.c"
- 2) Edit the #define of SIMPLIFY_PROTOTYPES so that
- it says:
-
- #define SIMPLIFY_PROTOTYPES 0
-
- 3) Feel free to add any headers you usually use (like, AppleEvents,
- Folders, GestaltEqu, ...) in the #if 0 sections by changing them to
- #if 1
-
- 4) Precompile
-
- 5) Save the results as MacHeaders, replacing the existing MacHeaders.
-
- The change in 2) above will prevent MILLIONS of bufs you may do, by
- making the header fascist about pointer argument types. You should
- also use Require Prototypes in the Project Options.
-
- Cheers,
-
- / h+
-
- --
- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
- "You NEVER hide the menu bar. You might go about and change the color
- of it to the background color, but you never HIDE the menu bar."
- -- Tog
-