Problems building 3.2.4

Discussion around programming R'n'D, its source code and its tools.

Moderators: Zomis, Flumminator

Post Reply
Tomi
Posts: 339
Joined: Wed Aug 03, 2005 3:37 pm
Location: Slovakia

Problems building 3.2.4

Post by Tomi » Sat Sep 15, 2007 2:53 pm

Building RnD 3.2.4 fails with this error:

Code: Select all

screens.o: In function `DrawInfoScreen_Version':
screens.c:(.text+0x9413): undefined reference to `SDL_NET_VERSION'
screens.c:(.text+0x9418): undefined reference to `SDLNet_Linked_Version'
collect2: ld returned 1 exit status
And really, there is no SDL_NET_VERSION or SDLNet_Linked_Version in SDL_net.h. A google search for SDL_NET_VERSION isn't very helpful either. Actually, when googling "SDL_net.h" I found a file that's the same as mine (no SDL_NET_VERSION either).

I think this may be caused by me using an old version of SDL_net (I have 1.2.5.7). Is this the case?

Daniel H.
Posts: 535
Joined: Sun Apr 02, 2006 7:13 pm
Location: USA

Post by Daniel H. » Sat Sep 15, 2007 8:50 pm

I think it is likely that using an old version of SDL_net is causing your problem.

User avatar
Holger
Site Admin
Posts: 2977
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger » Sat Sep 15, 2007 10:13 pm

Yep, right. Just update to the latest versions of the SDL libraries:

- SDL-1.2.12
- SDL_image-1.2.6
- SDL_mixer-1.2.8
- SDL_net-1.2.7

Just upgrading to SDL_net-1.2.7 should be enough to fix the mentioned compile error, of course (never heard of a version 1.2.5.7, btw), but I recommend at least upgrading to SDL-1.2.12, too (at least if you're using 1.2.11 now), as it fixes a problem with loading PCX files taking around 5 to 8 times longer on Windows systems that I have reported to the SDL team a few months ago.

Tomi
Posts: 339
Joined: Wed Aug 03, 2005 3:37 pm
Location: Slovakia

Post by Tomi » Sun Sep 16, 2007 12:17 pm

Um, isn't it SDL_image that handles loading PCX files?

Post Reply