用_beginthreadex创建了一个线程,报错说未定义

Annihilate 2010-12-13 02:46:03
哪位童鞋指点下怎么办
...全文
309 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
m_kk 2010-12-13
  • 打赏
  • 举报
回复
/MT
jasonslyvia 2010-12-13
  • 打赏
  • 举报
回复
在编译器里把编译模式设为multithread..
Defonds 2010-12-13
  • 打赏
  • 举报
回复
链接库问题
Annihilate 2010-12-13
  • 打赏
  • 举报
回复
好了,我自己解决了
Annihilate 2010-12-13
  • 打赏
  • 举报
回复
我貌似觉得也是这个问题 .....请问 链接库要怎么设置.....
东莞某某某 2010-12-13
  • 打赏
  • 举报
回复
To use _beginthread or _beginthreadex, the application must link with one of the multithreaded C run-time libraries.


是否链接库的原因?
Annihilate 2010-12-13
  • 打赏
  • 举报
回复
e 就是_beginthreadex 报错
ouyh12345 2010-12-13
  • 打赏
  • 举报
回复
代码?
_beginthreadex是库函数,beginthreadex不是
Annihilate 2010-12-13
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 varding 的回复:]
写详细点,不知道啥未定义啊

是不是你的函数在_beginthreadex之后的地方定义了?你试试在_beginthreadex之前声明下函数
[/Quote]

是说beginthreadex 未定义
Annihilate 2010-12-13
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 luciferisnotsatan 的回复:]
源代码
加了process.h,还报_beginthreadex这个函数未定义?
[/Quote]

是的...
luciferisnotsatan 2010-12-13
  • 打赏
  • 举报
回复
源代码
加了process.h,还报_beginthreadex这个函数未定义?
varding 2010-12-13
  • 打赏
  • 举报
回复
写详细点,不知道啥未定义啊

是不是你的函数在_beginthreadex之后的地方定义了?你试试在_beginthreadex之前声明下函数
Annihilate 2010-12-13
  • 打赏
  • 举报
回复
加了 还是报错
ouyh12345 2010-12-13
  • 打赏
  • 举报
回复
process.h

69,373

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧