【问题标题】:I can't compile SDL_net in MinGW我无法在 MinGW 中编译 SDL_net
【发布时间】:2018-06-19 16:51:36
【问题描述】:

每次我尝试编译 SDL_net 时都会显示

SDLnet.c: In function 'SDLNet_GetLocalAddresses': SDLnet.c:215:69: error: 'ERROR_BUFFER_OVERFLOW' undeclared (first use in this function) if ((dwRetVal = GetAdaptersInfo(pAdapterInfo, &ulOutBufLen)) == ERROR_BUFFER_OVERFLOW) { ^~~~~~~~~~~~~~~~~~~~~ SDLnet.c:215:69: note: each undeclared identifier is reported only once for each function it appears in SDLnet.c:223:21: error: 'NO_ERROR' undeclared (first use in this function) if (dwRetVal == NO_ERROR) { ^~~~~~~~ make: *** [SDLnet.lo] Error 1

【问题讨论】:

  • 请再澄清一下您的问题
  • 我正在通过官方 wiki 中的教程在 Mingw 中编译 DOSBox。安装了MinGW,编译安装了sdl1.2,然后尝试编译sdl_net就报错了。
  • mingw没有预编译的sdl_net吗?
  • 我看到为 VC 预编译

标签: c mingw dosbox


【解决方案1】:

https://www.vogons.org/viewtopic.php?f=31&t=55706#p609435 使用我的 Mingw 指南,它位于 Google Drive 链接中

【讨论】:

  • 欢迎来到 SO。如果您在答案中包含链接中的相关内容,您的答案将更快地对用户更有用,并且如果链接消失,您的答案将仍然有用。见stackoverflow.com/help/how-to-answer
猜你喜欢
  • 1970-01-01
  • 2013-04-25
  • 2017-01-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多