我无法在MinGW中编译SDL_net

时间:2018-06-19 16:51:37

标签: c mingw dosbox

每次我尝试编译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

1 个答案:

答案 0 :(得分:0)

https://www.vogons.org/viewtopic.php?f=31&t=55706#p609435 使用我的Mingw指南,它在Google云端硬盘链接中