Okay, so I wanted to create a VC++ Express 2008 project with SDL. Here's what I did:
Downloaded SDL-devel-1.2.12-VC8.zip and unzipped it to C:/sdl
added C:/sdl/include to VC's include directories
added C:/sdl/lib to VC's lib directories
created a blank project
added main.cpp with this content:
#include <sdl.h>
#include <sdl_main.h>
#pragma comment(lib, "SDL.lib")
#pragma comment(lib, "SDLmain.lib")
int main(int argc, char *argv[])
{
return 0;
}
checked Project Properties | C/C++ | Code Generation | Runtime Library (It was set to Multithreaded Debug DLL)
I then compiled my program to get this output:
------ Build started: Project: [Project], Configuration: Debug Win32 ------
Compiling...
main.cpp
Linking...
LINK : fatal error LNK1561: entry point must be defined
Build log was saved at "[my project directory]"
[Project] - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I don't see what I missed. I know the pragmas did link libraries because I put nonsense in one and the linker gave me a file not found error.
I'm downloading the DirectX SDK so I can compile SDL myself in hopes that the precompiled binaries just aren't compatible with VCE 2008.
Can anyone see anything wrong with this?