3 ms·
You need to specify margins for advent.pli (because the text outside them is not part of the source code), and an output file name: ./plic '-m(2,72)' -oadv
by rep_lodsb 1y ago
You need to specify margins for advent.pli (because the text outside them is not part of the source code), and an output file name:
./plic '-m(2,72)' -oadvent.o advent.pli
Then link with this command:
ld --oformat=elf32-i386 -melf_i386 -z muldefs -Bstatic -e main -lprf -L ./lib -o advent advent.o
That gets you a binary which will run, unfortunately something still doesn't work right when loading the advent.dat file:
Initializing...
Reading section # 1
Fatal error # 0
(the one included in the zip file does work however, so it's likely another missing option rather than a problem with the compiler?)