commenting out the highlighted errors adds this to the end of my output
/tmp/ccJMaftj.o: In function `ui_edit_draw': interface.c:(.text+0x4426): undefined reference to `drawpixel' interface.c:(.text+0x4460): undefined reference to `drawpixel' interface.c:(.text+0x4498): undefined reference to `drawpixel' interface.c:(.text+0x44cf): undefined reference to `drawpixel' interface.c:(.text+0x4507): undefined reference to `drawpixel' /tmp/ccJMaftj.o:interface.c:(.text+0x4541): more undefined references to `drawpixel' follow collect2: ld returned 1 exit status
I just tried compiling (made a new project and everything). I got this error message
1> unzcrash.c 1>c1 : fatal error C1083: Cannot open source file: 'bzlib\unzcrash.c': No such file or directory 1> spewG.c 1>c1 : fatal error C1083: Cannot open source file: 'bzlib\spewG.c': No such file or directory 1> randtable.c 1>c1 : fatal error C1083: Cannot open source file: 'bzlib\randtable.c': No such file or directory 1> mk251.c 1>c1 : fatal error C1083: Cannot open source file: 'bzlib\mk251.c': No such file or directory 1> huffman.c 1>c1 : fatal error C1083: Cannot open source file: 'bzlib\huffman.c': No such file or directory 1> dlltest.c 1>c1 : fatal error C1083: Cannot open source file: 'bzlib\dlltest.c': No such file or directory 1> decompress.c 1>c1 : fatal error C1083: Cannot open source file: 'bzlib\decompress.c': No such file or directory 1> crctable.c 1>c1 : fatal error C1083: Cannot open source file: 'bzlib\crctable.c': No such file or directory 1> compress.c 1>c1 : fatal error C1083: Cannot open source file: 'bzlib\compress.c': No such file or directory 1> bzlib.c 1>c1 : fatal error C1083: Cannot open source file: 'bzlib\bzlib.c': No such file or directory 1> bzip2recover.c 1>c1 : fatal error C1083: Cannot open source file: 'bzlib\bzip2recover.c': No such file or directory 1> bzip2.c 1>c1 : fatal error C1083: Cannot open source file: 'bzlib\bzip2.c': No such file or directory 1> blocksort.c 1>c1 : fatal error C1083: Cannot open source file: 'bzlib\blocksort.c': No such file or directory 1> air.c 1> Generating Code... ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Check the Win32 code wiki, Simon updated the linkers for this version of the code (you can change your guide to match it) I also had to include <source>\Includes\SDL for some of the errors to go away.
It looks like mine is due to some missing files, I never downloaded any of these files (I checked with search in Explorer). I did download object files of the same name, but not any of the .c files.
Libraries are different in Linux, you just have to have the right package installed (think its /usr/lib and /lib), I've got all the relevent dev packages installed.