I Think i may have fucked up my default codeblocks links to the standard c++ libraries when following lazyfoo's tutorial. How do i get them back? Same way i linked all the SDL files? If so where do i find the standard c++ files?
What tutorial are you talking about and what compiler are you using?
Also, what is your problem? Does some feature within C::B no longer work, or do your programs not compile correctly anymore?
It taught me how to link SDL library into codeblocks and now when i got to the second part of the tutorial i realised that c::B is not recognising #include <string> . and yes any other programs i wrote before i did the linking changing dont recognise cout and other basic standard library code
anything that uses basic c++ syntax, for example the pure SDL program compiles with no errors. but when i use #include <string> it sais no such file/directory found
So, does adding usingnamespace std; solve the problem? I just looked through the tutorial and it's pretty well the same as setting up SFML (adding the libraries and such) and I haven't had any problems.
Edit:
Why do you have #include <string> , you don't even use it.
yes . its a very good tutorial but basically my problem is that on the second part. http://lazyfoo.net/SDL_tutorials/lesson02/index.php <-- I the code requires me to add the string. and it seems that i just cant do that for some reason... just try including string in the basic SDL app.
1. I'm not sure how you can 'break' the STL, try reset the compiler settings to default, and/or compile a basic hello_world.cpp from command line (mingw-gcc/g++ must be on your path)
2. In the tutorial it was mentioned std::string was used as alternative to (old-style) char* -for getting a file name for one of its functions
I did try reseting the compiler settings, no help... cannot compile anything(other than SDL stuff) on that file which was used. but again if i make a new console project everything is fine..
I will try the same thing on visual 2010 and report back. but i dunno this makes me sad because it just puts a stupid halt on me trying to learn
hmm yeah i dunno.. ill try doing it from another computer.. but im thinking how could i compile the first two tutorials and not the next one>? But ill deffinetly try it again on another computer. THanks for getting back to me.