Boost::Test — generation of Main()?

我是研究僧i 提交于 2019-12-03 17:03:57

I think the problem is that you're using the VC10 beta.

It has a fun little bug where, when Unicode is enabled, it requires the entry point to be wmain, not main. (Older versions allowed you to use both wmain and main in those cases).

Of course this will be fixed in the next beta, but until then, well, it's a problem. :)

You can either downgrade to VC9, disable Unicode, or try manually setting the entry point to main in project properties.

Another thing that might work is if you define your own wmain stub, which calls main. I'm pretty sure this is technically undefined behavior, but as a workaround for a compiler bug in an unreleased compiler it might do the trick.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!