#include "../FreeGL/FreeGL.h"
using namespace FreeGL;
int main( int argc, char *argv[] )
{
new Root();
Root::getSingleton().initialize( argc, argv, "FreeGL.cfg" );
Root::getSingleton().run();
delete Root::getSingletonPtr();
ManagedObject::collectRemainingObjects( true );
return 0;
}
Where FreeGL is the engine I am developing and FreeGL.h includes SDL.h. The project is linked with SDL.lib and stuff, but the linker still complains of a missing symbol _main(). I know SDL is supposed to rename main() to sdl_main() and provide it's own main(), but it doesn't look like it's happening. Anyone have any ideas?
SDL and main()...
The following should work perfectly (at least I think):
- fyhuang [ site ]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement