I’m attempting to compile Arianne (an SDL game), and it fails with a:
Server.o: In function AddNewPlayer(_SDLNet_SocketSet *, _TCPsocket *)': /usr/local/src/X11/games/Arianne-0.3.6.2/src/Server.cpp:78: undefined reference to
SDLNet_ResolveIP’
I have SDL_net-1.0.1 installed in /usr/local, and the SDL_net.h file has a
reference to SDLNet_ResultIP:
/* Resolve an ip address to a host name in canonical form.
If the ip couldn’t be resolved, this function returns NULL,
otherwise a pointer to a static buffer containing the hostname
is returned. Note that this function is not thread-safe.
*/
extern char *SDLNet_ResolveIP(IPaddress *ip);
but I couldn’t find anywhere in the SDL_net source where this function was
actually defined. Am I missing something?
Hey you have to download the SDLNet.c from my page
(http://come.to/arianne_rpg )
This compile problem is because the SDLNet_ResolveIP is defined but
not implemented in SDLNet 1.0.1
I have implemented it my self, download the source 0.3.6.1 and write
the original SDLNet.c with the one from Arianne. Take a look before if
you want.
Regards.
Miguel Angel Blanch Lardin.
Quoting Zachariah :
I’m attempting to compile Arianne (an SDL game), and it fails with
a:
Server.o: In function AddNewPlayer(_SDLNet_SocketSet *, _TCPsocket *)': /usr/local/src/X11/games/Arianne-0.3.6.2/src/Server.cpp:78: undefined reference to
SDLNet_ResolveIP’
I have SDL_net-1.0.1 installed in /usr/local, and the SDL_net.h file
has a
reference to SDLNet_ResultIP:
/* Resolve an ip address to a host name in canonical form.
If the ip couldn’t be resolved, this function returns NULL,
otherwise a pointer to a static buffer containing the hostname
is returned. Note that this function is not thread-safe.
*/
extern char *SDLNet_ResolveIP(IPaddress *ip);
but I couldn’t find anywhere in the SDL_net source where this
function was> actually defined. Am I missing something?
x5101920 at fedro.ugr.es said:
Hey you have to download the SDLNet.c from my page (http://come.to/
arianne_rpg )
This compile problem is because the SDLNet_ResolveIP is defined but
not implemented in SDLNet 1.0.1
I have implemented it my self, download the source 0.3.6.1 and write
the original SDLNet.c with the one from Arianne. Take a look before if
you want.
cool!
thanks!