Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.