您当前的位置: 首页 >  ar

error: ‘_beginthreadex‘ undeclared (first use in this function); did you mean ‘SDL_beginthread‘?

柳鲲鹏 发布时间:2021-06-10 11:59:04 ,浏览量:0

  WINDOWS下编译SDL2,出错如下:

SDL2-2.0.14/include/SDL_thread.h:107:25: error: '_beginthreadex' undeclared (first use in this function); did you mean 'SDL_beginthread'?
 #define SDL_beginthread _beginthreadex

  这个错误是怎么产生的?在cygwin中编译用到SDL2的代码。怎么解决呢?

  • 修改SDL_thread.h。越改越多。
  • 使用VS编译。太麻烦。
  • 使用Linux版本的头文件。一下子就过去了。
关注
打赏
1688896170
查看更多评论

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4641博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0794s