hello again, im learning sdl from lazyfoo´s tutorials, now i have came to collision ( per-pixel collision )
but i encounter a problem,
i have tryed to solve this on my own but i really cant figure out whats wrong
so i tryed to compile the source from his website and i get the same problem so it have to be something wrong with my compiler cause it compiled fine before this tutorial!
In your project settings somewhere, there's an option that probably currently reads "Multi-Threaded Debug" -- change it to "Multi-Threaded Debug DLL". If that's already like that, the program isn't linking one of the standard libraries of msvcrtd.lib (<-I think that's what it's called) or libcmtd.lib (<-I'm for sure on that one).
Edit: For release builds, use Multi-threaded DLL (and mscvrt.lib and libcmt.lib but those not being built against by default means something bad has happened, same as them not being linked against in debug above :P)
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
I'm assuming you're compiling in Debug mode. For a release build, use Multi-Threaded DLL (Instead of multi-threaded debug dll)
"DLL" part means that part of your libraries you're linking to (SDL) is a DLL file. If you have the source, the "Multi-threaded" and "Multi-threaded debug" builds what would be a DLL file directly into your .exe.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
You're welcome. That's called "static linking" by the way, when you have no DLL files with your project when you could. It's called "dynamic linking" when you do (because you can update the .dll files and your project will work, but with updated stuff!)
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.