一开始windows 下也没有 后来翻到源代码将:
#ifdef USE_WIN32_CONSOLE
AllocConsole();
freopen(“CONIN$”, “r”, stdin);
freopen(“CONOUT$”, “w”, stdout);
freopen(“CONOUT$”, “w”, stderr);
#endif
// create the application instance
AppDelegate app;
int ret = Application::getInstance()->run();
#ifdef USE_WIN32_CONSOLE
FreeConsole();
#endif
改成:
AllocConsole();
freopen(“CONIN$”, “r”, stdin);
freopen(“CONOUT$”, “w”, stdout);
freopen(“CONOUT$”, “w”, stderr);
// create the application instance
AppDelegate app;
int ret = Application::getInstance()->run();
FreeConsole();
就可以,估计是USE_WIN32_CONSOLE这个宏的设置有问题。
android在哪里改才能看到控制台信息。
运行机器win10 64位