问题描述:将CreateThread换成_beginthreadex后,编译器在链接的时候将启用C Runtime Library。F7后我的vc7开始井喷:
error C3861: ‘_beginthreadex’: identifier not found, even with argument-dependent lookup(即使使用参数相关的查找,也未找到标识符)
仔细核对参数类型并include<process.h>,问题依旧。
阅读一些资料后找到解决方法,VC7默认使用的C运行时库是单线程的,来到project Setting -> C++ ->Category->Code Generate
运行时库选择the multithreaded C run-time libraries。
MSDN里这样说:
Multithreaded versions of the C run-time libraries only.
To use _beginthread or _beginthreadex, the application must link with one of the multithreaded C run-time libraries.


分享到做啥
分享到收客


还没有评论。