Source compiling error.

Status
Not open for further replies.

ssbb47

Member
When I try to compile SRB2's source, it always aborts on the exe.
This was in my compiling log:
Code:
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Owner\Desktop\srb2\src\win32\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\Owner\Desktop\srb2\src\win32\Makefile.win" all
gcc.exe -c ../P_mobj.c -o ../../objs/Mingw/Win32/P_mobj.o -I"C:/Dev-Cpp/include"  -fomit-frame-pointer -ffloat-store -DSTDC_HEADERS -Wall -D_WINDOWS -DUSEASM -DHAVE_PNG -D_DEBUG -Os   -O3 -fmessage-length=0 -march=pentium-mmx -mmmx

gcc.exe -c ../P_setup.c -o ../../objs/Mingw/Win32/P_setup.o -I"C:/Dev-Cpp/include"  -fomit-frame-pointer -ffloat-store -DSTDC_HEADERS -Wall -D_WINDOWS -DUSEASM -DHAVE_PNG -D_DEBUG -Os   -O3 -fmessage-length=0 -march=pentium-mmx -mmmx

gcc.exe -c ../P_user.c -o ../../objs/Mingw/Win32/P_user.o -I"C:/Dev-Cpp/include"  -fomit-frame-pointer -ffloat-store -DSTDC_HEADERS -Wall -D_WINDOWS -DUSEASM -DHAVE_PNG -D_DEBUG -Os   -O3 -fmessage-length=0 -march=pentium-mmx -mmmx

gcc.exe -c ../Command.c -o ../../objs/Mingw/Win32/Command.o -I"C:/Dev-Cpp/include"  -fomit-frame-pointer -ffloat-store -DSTDC_HEADERS -Wall -D_WINDOWS -DUSEASM -DHAVE_PNG -D_DEBUG -Os   -O3 -fmessage-length=0 -march=pentium-mmx -mmmx

gcc.exe -c ../G_game.c -o ../../objs/Mingw/Win32/G_game.o -I"C:/Dev-Cpp/include"  -fomit-frame-pointer -ffloat-store -DSTDC_HEADERS -Wall -D_WINDOWS -DUSEASM -DHAVE_PNG -D_DEBUG -Os   -O3 -fmessage-length=0 -march=pentium-mmx -mmmx

gcc.exe -c ../Hu_stuff.c -o ../../objs/Mingw/Win32/Hu_stuff.o -I"C:/Dev-Cpp/include"  -fomit-frame-pointer -ffloat-store -DSTDC_HEADERS -Wall -D_WINDOWS -DUSEASM -DHAVE_PNG -D_DEBUG -Os   -O3 -fmessage-length=0 -march=pentium-mmx -mmmx

gcc.exe -c ../St_stuff.c -o ../../objs/Mingw/Win32/St_stuff.o -I"C:/Dev-Cpp/include"  -fomit-frame-pointer -ffloat-store -DSTDC_HEADERS -Wall -D_WINDOWS -DUSEASM -DHAVE_PNG -D_DEBUG -Os   -O3 -fmessage-length=0 -march=pentium-mmx -mmmx

gcc.exe -c ../y_inter.c -o ../../objs/Mingw/Win32/y_inter.o -I"C:/Dev-Cpp/include"  -fomit-frame-pointer -ffloat-store -DSTDC_HEADERS -Wall -D_WINDOWS -DUSEASM -DHAVE_PNG -D_DEBUG -Os   -O3 -fmessage-length=0 -march=pentium-mmx -mmmx

gcc.exe ../../objs/Mingw/Win32/dx_error.o ../../objs/Mingw/Win32/fabdxlib.o ../../objs/Mingw/Win32/filesrch.o ../../objs/Mingw/Win32/Mid2strm.o ../../objs/Mingw/Win32/win_cd.o ../../objs/Mingw/Win32/win_dbg.o ../../objs/Mingw/Win32/win_dll.o ../../objs/Mingw/Win32/win_main.o ../../objs/Mingw/Win32/win_net.o ../../objs/Mingw/Win32/win_snd.o ../../objs/Mingw/Win32/win_sys.o ../../objs/Mingw/Win32/win_vid.o ../../objs/Mingw/Win32/hw3sound.o ../../objs/Mingw/Win32/hw_bsp.o ../../objs/Mingw/Win32/hw_cache.o ../../objs/Mingw/Win32/hw_draw.o ../../objs/Mingw/Win32/hw_light.o ../../objs/Mingw/Win32/hw_main.o ../../objs/Mingw/Win32/hw_md2.o ../../objs/Mingw/Win32/hw_trick.o ../../objs/Mingw/Win32/D_clisrv.o ../../objs/Mingw/Win32/D_main.o ../../objs/Mingw/Win32/D_net.o ../../objs/Mingw/Win32/D_netcmd.o ../../objs/Mingw/Win32/D_netfil.o ../../objs/Mingw/Win32/M_argv.o ../../objs/Mingw/Win32/M_bbox.o ../../objs/Mingw/Win32/M_cheat.o ../../objs/Mingw/Win32/M_fixed.o ../../objs/Mingw/Win32/M_menu.o ../../objs/Mingw/Win32/M_misc.o ../../objs/Mingw/Win32/M_random.o ../../objs/Mingw/Win32/P_ceilng.o ../../objs/Mingw/Win32/P_enemy.o ../../objs/Mingw/Win32/P_fab.o ../../objs/Mingw/Win32/P_floor.o ../../objs/Mingw/Win32/P_inter.o ../../objs/Mingw/Win32/P_lights.o ../../objs/Mingw/Win32/P_map.o ../../objs/Mingw/Win32/P_maputl.o ../../objs/Mingw/Win32/P_mobj.o ../../objs/Mingw/Win32/P_saveg.o ../../objs/Mingw/Win32/P_setup.o ../../objs/Mingw/Win32/P_sight.o ../../objs/Mingw/Win32/P_spec.o ../../objs/Mingw/Win32/P_telept.o ../../objs/Mingw/Win32/P_tick.o ../../objs/Mingw/Win32/P_user.o ../../objs/Mingw/Win32/R_bsp.o ../../objs/Mingw/Win32/R_data.o ../../objs/Mingw/Win32/R_draw.o ../../objs/Mingw/Win32/R_main.o ../../objs/Mingw/Win32/R_plane.o ../../objs/Mingw/Win32/R_segs.o ../../objs/Mingw/Win32/R_sky.o ../../objs/Mingw/Win32/r_splats.o ../../objs/Mingw/Win32/R_things.o ../../objs/Mingw/Win32/Am_map.o ../../objs/Mingw/Win32/Command.o ../../objs/Mingw/Win32/Console.o ../../objs/Mingw/Win32/Dehacked.o ../../objs/Mingw/Win32/Dstrings.o ../../objs/Mingw/Win32/F_finale.o ../../objs/Mingw/Win32/F_wipe.o ../../objs/Mingw/Win32/G_game.o ../../objs/Mingw/Win32/G_input.o ../../objs/Mingw/Win32/Hu_stuff.o ../../objs/Mingw/Win32/i_tcp.o ../../objs/Mingw/Win32/Info.o ../../objs/Mingw/Win32/md5.o ../../objs/Mingw/Win32/mserv.o ../../objs/Mingw/Win32/S_sound.o ../../objs/Mingw/Win32/Screen.o ../../objs/Mingw/Win32/Sounds.o ../../objs/Mingw/Win32/St_stuff.o ../../objs/Mingw/Win32/Tables.o ../../objs/Mingw/Win32/V_video.o ../../objs/Mingw/Win32/W_wad.o ../../objs/Mingw/Win32/Z_zone.o ../../objs/Mingw/Win32/tmap.o ../../objs/Mingw/Win32/vid_copy.o ../../objs/Mingw/Win32/y_inter.o ../../objs/Mingw/Win32/tmap_mmx.o ../../objs/Mingw/Win32/comptime.o ../../objs/Mingw/Win32/string.o ../../objs/Mingw/Win32/wLegacy_private.res -o "..\..\objs\Mingw\Win32\srb2win.exe" -L"C:/Dev-Cpp/lib" -mwindows -lddraw -ldinput -ldsound -ldxguid -lfmod -lwinmm -lwsock32 -lpng  -fmessage-length=0 -s -march=pentium-mmx -mmmx 

../../objs/Mingw/Win32/fabdxlib.o(.text+0xda):fabdxlib.c: undefined reference to `DXErrorToString'
../../objs/Mingw/Win32/fabdxlib.o(.text+0xf0):fabdxlib.c: undefined reference to `DXErrorToString'
../../objs/Mingw/Win32/fabdxlib.o(.text+0x4d4):fabdxlib.c: undefined reference to `DXErrorToString'
../../objs/Mingw/Win32/fabdxlib.o(.text+0x4ea):fabdxlib.c: undefined reference to `DXErrorToString'

../../objs/Mingw/Win32/fabdxlib.o(.text+0x534):fabdxlib.c: undefined reference to `DXErrorToString'
../../objs/Mingw/Win32/fabdxlib.o(.text+0x54a):fabdxlib.c: more undefined references to `DXErrorToString' follow
collect2: ld returned 1 exit status

make.exe: *** [../../objs/Mingw/Win32/srb2win.exe] Error 1

Execution terminated
Anyone know what I need to do for it to compile?
 
Ah, sorry, I didn't read the output closely enough. DXErrorToString is defined by SRB2 itself and is not a library routine as I'd thought (but you need the devpaks anyway). Try doing a clean build (Execute -> Rebuild All in Dev-C++). Failing that, we'll have some intricate diagnostics to undertake.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top