I'm having this problem
http://cboard.cprogramming.com/archi...p/t-83909.html
But that person didn't explain how the got past the:
LNK1561: entry point must be defined
error.
I tried the stuff that people suggested in there, but to no avail.
Printable View
I'm having this problem
http://cboard.cprogramming.com/archi...p/t-83909.html
But that person didn't explain how the got past the:
LNK1561: entry point must be defined
error.
I tried the stuff that people suggested in there, but to no avail.
Normally, if you want to work with SDL with Visual Studio (be 6.0 or 2005), you have to:
- Create a "Win32 application" empty project
- Add the SDL.lib and SDLMain.lib library to your project
- Set the runtime library as "Multithreaded DLL"
You also need the SDL.dll file to be in your project directory or in windows/system32/, but this wouldn't cause any linking error, only runtime error.
And then, well, you start working with this
And it should work just fine.Code:#include <SDL.h>
int main(int argc, char *argv[])
{
return 0;
}