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 -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