16
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 10, 2026, 06:06:44 pm »
SDLroids looks good. I'll look at the sdlZombies later
OS2World.com Forum is back !!!
Remember to visit OS2World at:
http://www.os2world.com
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
sdl.c: In function 'Pause':
sdl.c:892:9: warning: variable 'Pt' set but not used [-Wunused-but-set-variable]
892 | POINT Pt;
| ^~
sdl.c: At top level:
sdl.c:548:3: warning: 'current_y' is static but used in inline function 'LineTo' which is not static
548 | current_y=y;
| ^~~~~~~~~
sdl.c:547:3: warning: 'current_x' is static but used in inline function 'LineTo' which is not static
547 | current_x=x;
| ^~~~~~~~~
sdl.c:546:22: warning: 'current_y' is static but used in inline function 'LineTo' which is not static
546 | drawline(current_x,current_y,x,y);
| ^~~~~~~~~
sdl.c:546:12: warning: 'current_x' is static but used in inline function 'LineTo' which is not static
546 | drawline(current_x,current_y,x,y);
static int is_poly=0;
inline void LineTo(int x,int y)
{
x = convx(x); y = convy(y);
drawline(current_x,current_y,x,y);
current_x=x;
current_y=y;
}
configure CFLAGS=-DHAVE_LIBSDL_MIXER 'LDFLAGS=-Zomf -Zhigh-mem -Zmap' 'LIBS=-lSDL_mixer'
Doesn't make a difference if I use -Zhigh-mem and/or -Zmap.gcc -DHAVE_LIBSDL_MIXER -Ih:/tmp/SDL/h -Ih:/tmp/SDL/h/SDL -Zomf -Zhigh-mem -Zmap -o sdlroids.exe hyperoid.o roidsupp.o sdlsound.o sdl.o petopt.o getargs.o rand.o -lm -lSDL_mixer -Lh:/tmp/SDL/lib -Zomf -lsdl12
...Error! E2028: _ifloor is an undefined reference
Error! E2028: _SDL_GetPixel is an undefined reference
Error! E2028: _iceil is an undefined reference
Error! E2028: _MoveTo is an undefined reference
Error! E2028: _LineTo is an undefined reference
Error! E2028: _drawline is an undefined reference
You'll need to use exehdr to make it a PM program though I could add a def.
[H:\tmp\GAME-SDL-ACTION-SDLRoids]sdlroids
Killed by SIGFPE
pid=0x3627 ppid=0x029e tid=0x0001 slot=0x00c4 pri=0x0200 mc=0x0001 ps=0x0010
H:\TMP\GAME-SDL-ACTION-SDLROIDS\SDLROIDS.EXE
cs:eip=0003:00000008 ss:esp=0000:20000000 ebp=1f380053
ds=2003013c es=0000 fs=0013fc14 gs=0000 efl=20000218
eax=0013fd28 ebx=1ffc9d7c ecx=0013fd3c edx=0013fd60 edi=00000000 esi=0013ff9c
Creating 3627_01.TRP
Moved 3627_01.TRP to W:\var\log\app\69601a22-3627_01-SDLROIDS-exceptq.txt
H:\usr\local\bin>SDLInvaders.exe
SDLInvaders Version 0.8.0
libpng error: IDAT: CRC error
01-07-2026 18:00:49 SYS3170 PID 0cdc TID 0001 Slot 00ae
H:\USR\LOCAL\BIN\SDLINVADERS.EXE
c0000026
1d1aab6c
EAX=00000000 EBX=00000001 ECX=00000053 EDX=026436f4
ESI=026436f4 EDI=026436f4
DS=0053 DSACC=d0f3 DSLIM=b7ffffff
ES=0053 ESACC=d0f3 ESLIM=b7ffffff
FS=150b FSACC=00f3 FSLIM=00000030
GS=0000 GSACC=**** GSLIM=********
CS:EIP=005b:1ffca0e3 CSACC=d0df CSLIM=b7ffffff
SS:ESP=0053:0012f15c SSACC=d0f3 SSLIM=b7ffffff
EBP=0012f27c FLG=00000246
SDLIMAGE.DLL 0002:0000ab6c