user100663 user100663 - 1 year ago 144
C Question

gcc no such file or directory error

I am trying to compile a C program and am required to use these flags. I was hoping you could tell me why I am getting these errors.


gcc -ansi –Wall –pedantic stack.c


gcc: –Wall: No such file or directory

gcc: –pedantic: No such file or directory

Answer Source


gcc -ansi -Wall -pedantic

You're using one of those dashes: Dash (specifically, you are using en-dash U+2013). You need to use minus sign - instead

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download