home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20476 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  1.6 KB

  1. Path: sparky!uunet!crdgw1!rpi!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!casbah.acns.nwu.edu!geek
  2. From: geek@casbah.acns.nwu.edu (Myrland Gray)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: MPW Compile errors, Help!!! (long)
  5. Message-ID: <1992Dec31.161417.18888@news.acns.nwu.edu>
  6. Date: 31 Dec 92 16:14:17 GMT
  7. References: <1992Dec23.075909.1414@galaxy.gov.bc.ca>
  8. Sender: geek@casbah.acns.nwu.edu
  9. Distribution: usa
  10. Organization: Northwestern University, Evanston Illinois.
  11. Lines: 29
  12. Nntp-Posting-Host: unseen1.acns.nwu.edu
  13.  
  14. In article <1992Dec23.075909.1414@galaxy.gov.bc.ca> cconstantine@galaxy.gov.bc.
  15. ca writes:
  16. >I used the routine
  17. >found in Dave Mark & Cartwright Reed's C book 2, chapter 4 and just modified
  18. >it so that all I want is the 8-bit depth.  However, I get the following error
  19. >message when I compile:
  20. >
  21. ># 7:55:00 AM ----- Build of AR DataLogger/Mac.
  22. ># 7:55:00 AM ----- Analyzing dependencies.
  23. ># 7:55:02 AM ----- Executing build commands.
  24. >    Rez 'AR DataLogger/Mac.r' -append -o 'AR DataLogger/Mac'
  25. >    C -r -i ":Hdrs:" -sym on ":Src:"Main.c -o ":Obj:"Main.c.o
  26. >#        pixDepth = GetPixelDepth( curDev );
  27. >#        if ( pixDepth <> 8 )
  28. >#                       ?     
  29. >### Error 22 error in factor
  30. >#                         ?   
  31. >### Error 29 ')' expected
  32. >#                           ? 
  33. >### Error 30 ';' expected
  34. >#                           ? 
  35. >### Error 22 error in factor
  36.  
  37. Let me guess...you used to be a Pascal programmer? Try using != instead of <>.
  38. It's not MPW you're having problems with, it's C. Seriously though, it is an
  39. easy mistake to make when switching around between languages ;-)
  40.  
  41. Joey Gray
  42. geek@casbah.acns.nwu.edu
  43.