【发布时间】: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 预编译