home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14569 < prev    next >
Encoding:
Text File  |  1992-08-26  |  991 b   |  34 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!cs.utexas.edu!torn!cunews!revcan!micor!uuisis!bbs
  3. From: rrwood@uuisis.isis.org (Roy Wood)
  4. Subject: Why won't this compile under Think C 5.0?
  5. Organization: International Shared Information Service (Ottawa)
  6. Date: Tue, 25 Aug 92 16:25:26 GMT
  7. Message-ID: <T5L3PB3w164w@uuisis.isis.org>
  8. Sender: bbs@uuisis.isis.org
  9. Lines: 23
  10.  
  11. Okay, I'm feeling frustrated and dumb.  Look at this:
  12.  
  13. /* ----------------------------------------------------- */
  14.  
  15. extern void MyFunction(char);
  16.  
  17. void MyFunction(theChar)
  18. char theChar;
  19. {
  20.      /* do stuff */
  21. }
  22.  
  23. /* ---------------------------------------------------- */
  24.  
  25. Actually, the function prototype is getting pulled in from a #include file,
  26. and the "extern" doesn't really matter much (i.e. it still doesn't work even
  27. if I leave it out).  The problem seems to center around the use of the
  28. "char" data type-- it works with int's, long's, mother's-maiden-names, etc.,
  29. but not for char's.
  30.  
  31. So, what gives?
  32.  
  33. -Roy
  34.