Hello sdl,
When I include SDL.h under MS VS .NET 2002 in a simple program like
this:
#include “SDL.h”
int main()
{
return 0;
}
at compilation time it says “unresolved external symbol _main
referenced in function _mainCRTStartup”.
In more complex programs, after including SDL.h compilation gives all
kinds of weird syntax errors.
But if I don’t include SDL.h it works just fine, except I can’t use
SDL
The VS .NET project is a “console application” project. It makes no
difference if I create a “Windows application” project.
I have the include and lib paths set ok and I include SDL.lib to the
library list. If I add SDLmain.lib too I get some more symbol
conflicts with some MS libs that I can’t exclude either.
Currently I use a workaround to the problem by having a .h + .cpp
couple but I don’t include the .h file anywhere. Instead, I have
non-C++ wrapper functions in the .cpp which I refer using the "extern"
keyword in the rest of the program, but this isn’t too elegant and
it’s time consuming since I can’t use the objects I define directly.
Under Linux, with g++ 3.3.4, it works just fine.
SDL version on both Windows and Linux is 1.2.7.
Anyone knows of a way to use this in a normal way undes VS .NET 2002?
Thanks.–
Best regards,
Radu mailto:radu.c at newflavorstudio.com