I am making a screensaver and it won't build! The error I get is "undefined reference to '_SDL_main'. Here is my code:
#include <windows.h>
#include <scrnsave.h>
BOOL WINAPI ScreenSaverConfigureDialog(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)
{
system("TMXDB.exe");
return true;
}
BOOL WINAPI RegisterDialogClasses(HANDLE hmodule)
{
return true;
}
int TMR;
LONG WINAPI ScreenSaverProc(HWND hwnd,UINT message,WPARAM wparam,LPARAM lparam)
{
switch(message)
{
case WM_CREATE:
system("TMXSCR.exe");
return 0;
case WM_ERASEBKGND:
return 0;
case WM_TIMER:
return 0;
case WM_DESTROY:
KillTimer(hwnd,TMR);
PostQuitMessage(0);
return 0;
}
return 0;
}
What do I do to fix this (I don't usually program with windows API (thats why all I do is call my screensaver executable rather than actually doing something with windows API, so it could be something simple)