Forgove me if this has been posted before (I haven't seen it) but I installed the dev tools and the C compiler doesn't work. I'm trying to learn C as a prelude to Obj-C. When trying to cc test.c I get a few hundred lines of errors with the include files:
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:378: syntax error, found `::'
/usr/include/gcc/darwin/2.95.2/g++/iostream.h:50: syntax error, found `*'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:379: undefined type, found `virtual'
and so on. I have a very simple Hello World style program I'm trying to compile as a test and I did manage to get it to work with c++ test.c but I assume this'll only work for a short while until the differences in C/C++ start cropping up.
This is after a reformat and reinstall (for other reasons also) of 9.1, X and Dev Tools. Any suggestions?
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:378: syntax error, found `::'
/usr/include/gcc/darwin/2.95.2/g++/iostream.h:50: syntax error, found `*'
/usr/include/gcc/darwin/2.95.2/g++/streambuf.h:379: undefined type, found `virtual'
and so on. I have a very simple Hello World style program I'm trying to compile as a test and I did manage to get it to work with c++ test.c but I assume this'll only work for a short while until the differences in C/C++ start cropping up.
This is after a reformat and reinstall (for other reasons also) of 9.1, X and Dev Tools. Any suggestions?