'_beginthread' : undeclared identifier

来源:互联网 发布:80c51单片机 编辑:程序博客网 时间:2024/06/05 11:58

我在一个控制台程序中使用了_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!

运行库必须用多线程的!

0 0
原创粉丝点击