Quote:Original post by Drew_Benton
I say we all band together to promote and contribute to that Wiki [smile]
That would be excellent! Any and all contributions are certainly welcomed :)
The wiki craves information!
Quote:Original post by Drew_Benton
I say we all band together to promote and contribute to that Wiki [smile]
Quote:
This could happen for a couple of reasons. Most of the time it's because of the way the libraries need to be linked in the code. To resolve this, add these lines to your main source file, or to a header file linked into your main source file:
#pragma comment(lib, "SDL.lib")
#pragma comment(lib, "SDLmain.lib")
If this doesn't work, then you might have a very subtle and sneaky problem. This one hasn't bitten me, but I've seen it get others. When using SDL, you cannot have a void parameter list for your main function. You must use the command line variables.
int main(void) // Bad
int main() // Bad
int main(int argc char **argv) // Good
Quote:Original post by Rhaal
Everything compiles but the screen and/or a surface is blankThis one can be tricky once your program starts gaining size and you Separate your code. Make sure you initialize SDL's video system and set the video mode BEFORE attempting to render anything.