0

This is my main.cpp header

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
int WINAPI WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd )
#else 
int main(int argc, char* argv[])
#endif

I want to use program_options but this is on of the lines:

po::store(po::parse_command_line(argc, argv, desc), vm);

As you can see this line works only with gcc. How to use it with MSVC?

Vinz243
  • 9,654
  • 10
  • 42
  • 86

0 Answers0