Original Post
Hello, I.m trying to setup a starting project that will use SDL, but it seems it wont work du to some SDL entry point re-mapping. So basically my source file is: the build log is:
#include <SDL.h>
int main(int argc, char *argv[])
{
return 0;
}
------ Rebuild All started: Project: Motus, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'Motus', configuration 'Debug|Win32'
Compiling...
main.c
Linking...
LINK : fatal error LNK1561: entry point must be defined
Motus - 1 error(s), 0 warning(s)
I'v already read this topic (will open on a new window) but it did not help. I'm not too newbie relative to visual c++ (express), so I guess I've set up the project almost rightly. - Include directories: I:\sdk\SDL\include - Lib Directories: I:\sdk\SDL\lib - Additionnal dependencies: SDLmain.lib SDL.lib - The project is set to compile as C code (/TC) - Debug build, all optimization stuff is disabled - I've tried to add extern "C" to my main but it did not work either (error: string, of course, as C code. And as Cpp code the entry point is still not found, but I need my project to be plain C anyway) I hope I included all relevant information, and that someone can help me. Regards, Janta