umbc8% cat foo.C // File: HelloPC.C // #include main() { cout << "Hello PC World\n" ; } umbc8% umbc8% CC foo.C "foo.C", line 3: error(3104): unrecognized token ^ "foo.C", line 3: error(3254): expected a declaration ^ "/usr/include/memory.h", line 38: warning(3109): parsing restarts here after previous syntax error typedef unsigned int size_t; ^ "/usr/include/memory.h", line 45: error(3114): identifier "size_t" is undefined extern void *memccpy(void *, const void *, int, size_t); ^ "/usr/include/memory.h", line 46: error(3114): identifier "size_t" is undefined extern void *memchr(const void *, int, size_t); ^ "/usr/include/memory.h", line 47: error(3114): identifier "size_t" is undefined extern void *memcpy(void *, const void *, size_t); ^ "/usr/include/memory.h", line 48: error(3114): identifier "size_t" is undefined extern void *memset(void *, int, size_t); ^ "/usr/include/memory.h", line 49: error(3114): identifier "size_t" is undefined extern int memcmp(const void *, const void *, size_t); ^ "/usr/include/memory.h", line 52: error(3254): expected a declaration } ^ "/usr/include/CC/iostream.h", line 46: warning(3109): parsing restarts here after previous syntax error typedef long streampos ; ^ "/usr/include/CC/iostream.h", line 255: error(3114): identifier "streampos" is undefined virtual streampos ^ "/usr/include/CC/iostream.h", line 261: error(3114): identifier "streampos" is undefined virtual streampos ^ "/usr/include/CC/iostream.h", line 262: error(3114): identifier "streampos" is undefined seekpos(streampos, int =ios::in|ios::out) ; ^ "/usr/include/CC/iostream.h", line 373: error(3114): identifier "streampos" is undefined istream& seekg(streampos p) ; ^ "/usr/include/CC/iostream.h", line 379: error(3114): identifier "streampos" is undefined streampos tellg() ; ^ "/usr/include/CC/iostream.h", line 514: error(3114): identifier "streampos" is undefined ostream& seekp(streampos p) ; ^ "/usr/include/CC/iostream.h", line 520: error(3114): identifier "streampos" is undefined streampos tellp() ; ^ "foo.C", line 5: error(3104): unrecognized token ^ "foo.C", line 5: error(3254): expected a declaration ^ "foo.C", line 6: error(3104): unrecognized token main() { ^ "foo.C", line 7: error(3104): unrecognized token ^ "foo.C", line 8: error(3104): unrecognized token cout << "Hello PC World\n" ; ^ At end of source: warning(3109): parsing restarts here after previous syntax error 20 errors detected in the compilation of "foo.C". umbc8% umbc8% cp /afs/umbc.edu/users/c/h/chang/pub/cs202/stripcr ~/bin umbc8% rehash umbc8% umbc8% which stripcr /afs/umbc.edu/users/c/h/chang/home/bin/stripcr umbc8% umbc8% stripcr newfoo.C umbc8% CC newfoo.C umbc8% umbc8% a.out Hello PC World umbc8%