Author Topic: Compiler wont compile .cpp files with SDL commands in CodeBlocks  (Read 3284 times)

Offline wmbuRn

  • Single posting newcomer
  • *
  • Posts: 3
I am using SDL with C::B. It compiles perfectly. And everything is running, but only when i choose SDL project from Project Wizzard. When i download single .cpp file from net which contains SDL commands C::B wont compile it. Compiler shows tons of error (for any SDL command) . [.cpp file from net does compile from terminal with gcc -lSDL and if needed -lSDL_image ]. So i probably have linked something wrong. How to set up C::B to compile .cpp files from internet which contains SDL commands?

Sorry about my bad english.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]