Sdl on windows

Hi,
I got the developer package and have tried to build the most simple
program using SDL, using VC6:
#include “SDL.h”

int main(){
return 0;
}

I got:
sdlmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol
_SDL_main
The SDL.dll it’s on the path.
Please tell me what could be the problem.
Also I would like to know if SDL could work with VC7.

Thanks,
Radu.–
Radu Ursu, Software Engineer, CGAL, INRIA Sophia-Antipolis

It’s ok, I found the answer on FAQ page. The example in the doc didn’t
use the same signature as the one in FAQ page:
int main(int argc, char *argv[]) {

Radu Ursu wrote:> Hi,

I got the developer package and have tried to build the most simple
program using SDL, using VC6:
#include “SDL.h”

int main(){
return 0;
}

I got:
sdlmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol
_SDL_main
The SDL.dll it’s on the path.
Please tell me what could be the problem.
Also I would like to know if SDL could work with VC7.

Thanks,
Radu.


Radu Ursu, Software Engineer, CGAL, INRIA Sophia-Antipolis