我在一个控制台程序中使用了_beginthreadex()函数,并包含了PROCESS.h头文件 但总是编译错误:告诉我函数没有定义?
#include "process.h"
............
Compiling...
e:/_te$t/test/main.cpp(2299) : error C2065: '_beginthreadex' : undeclared identifier
原因就是在工程->设置->C/C++->Code Generation->Use run-time libray->选 Debug Multithread(多线程),或 Multithread!
运行库必须用多线程的!
本文介绍了解决在使用_beginthreadex()函数时遇到的未定义标识符问题的方法。通过调整项目的设置来确保正确地链接多线程运行库。
1532

被折叠的 条评论
为什么被折叠?



