Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i downloaded a manual of introduction to graphics programming with SDL, so i tried to compile my first source and it logged the next error

the command to compile it was:

$ gcc helloWorld.c [-o helloWorld] $(sdl-config --cflags --libs)

and the log is:

gcc: error: [-o: No such file or directory
gcc: error: helloWorld]: No such file or directory
share|improve this question

Do not use [ brackets ] in the command. Try this:

$ gcc helloWorld.c -o helloWorld $(sdl-config --cflags --libs)
share|improve this answer
Solved, thanks you – user2843739 Oct 10 '13 at 14:58
Please select the check mark next to this answer if it solved your problem. – Kevin Panko Oct 10 '13 at 15:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.