Yes i created a windows application and checked that it was under linker sub-system
odd...
It works when linking to your static library and i checked the the project in the build folder, just to make sure i wasnt missing anything.
so here is the code, as i said i just slapped it into the main .cpp
#if defined(_WIN32)
#include <windows.h>
extern int main( int argc, char* argv[] );
INT WINAPI WinMain( HINSTANCE, HINSTANCE, LPSTR, INT )
{
return main( __argc, __argv );
}
#endif
int main( )
{
return 0;
}
But it works if i just link your static library without changing my entry point atall.