Lazy Foo SDL tutorial 33 won't compile in codeblocks 13.12 |
Lazy Foo SDL tutorial 33 won't compile in codeblocks 13.12 |
javierecf
|
dont be just copying and pasting demos and tutorials from the internet, read about SDL, c++ and its libraries.
and if you are going to use a tutorial, a tip: write everyline of code of the tutorial on your own. that way at least you have some kind of sense of what the program is doing. also be sure you have
2014-03-16 0:56 GMT-07:00 shinn497:
-- Javier Flores |
|||||||||||||||
|
shinn497
|
The tutorial isn't explained. It is just source. Normally I can figure out what works and what doesn't this way if I know it will compile.
|
|||||||||||
|
Lazy Foo SDL tutorial 33 won't compile in codeblocks 13.12 |
javierecf
|
also codeblocks uses a version of mingw really outdated and with a lot of bugs, check out http://mingw-w64.sourceforge.net/, is better.
somebody explained it here: http://www.cplusplus.com/forum/beginner/120836/ 2014-03-16 1:42 GMT-07:00 shinn497:
-- Javier Flores |
|||||||||||||
|
Lazy Foo SDL tutorial 33 won't compile in codeblocks 13.12 |
Jonny D
|
std::to_string() also happens to be a C++11 feature. You have to turn on C++11 support explicitly for your compiler. Use the compiler flag -std=c++11 or -std=gnu++11.
Jonny D |
|||||||||||
|
jungletek
|
I posted this in a newer thread about the same issue, it's sad that people never follow up with their solutions on the internet...
|
|||||||||||||
|