'_beginthread' : undeclared identifier

我在一个控制台程序中使用了_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()函数,并包含了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!

运行库必须用多线程的!

猜你喜欢

转载自blog.csdn.net/nielilijy/article/details/24373737