I'm trying to compile a program with the CC compiler, but when running the command in Terminal:
cc –o sm hw33.c random.c stopwatch.c –lm
I get this error:
cc: error: –o: No such file or directory
cc: error: sm: No such file or directory
cc: error: –lm: No such file or directory
All the files exist and the names are indeed correct.
What seems to be the problem? Thanks.