Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!mips!apple!uokmax!munnari.oz.au!kaukau.comp.vuw.ac.nz!virtue!ccc_ldo From: ccc_ldo@waikato.ac.nz Newsgroups: comp.sys.mac.programmer Subject: MPW C 3.0 question Message-ID: <152.25dc364d@waikato.ac.nz> Date: 16 Feb 90 06:52:40 GMT Lines: 32 Can anybody tell me why the following program throws up an error with MPW C 3.0? typedef unsigned char Str255[256]; main() { Str255 temps, *tempp; tempp = &temps; } Here's the error report: # # tempp = &temps; # ? ### Error 225 Incompatible types for assignment #-------------------------------------------------------------------------------------------------------------------------------- File "test.c"; Line 9 #-------------------------------------------------------------------------------------------------------------------------------- I don't think it's anything to do with the ANSI C standard, as it does compile with VAX C. Lawrence D'Oliveiro Resident Mac fanatic and sworn enemy of diskless workstations Computer Services Department, University of Waikato, Hamilton, New Zealand "### Error 57 a typedef name was a complete surprise to me at this point in your program"