每当我尝试编译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 inSDLnet.c:223:21: error: 'NO_ERROR' undeclared (first use in this function) if (dwRetVal == NO_ERROR) { ^~~~~~~~make: *** [SDLnet.lo] Error 1

最佳答案

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

关于c - 我无法在MinGW中编译SDL_net,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/50933373/

10-11 16:51