I'm trying to compile the duke nukem 3D source code, just for fun and for learning purpose (I mean the original source code, not the eduke32 one).
I'm using the OpenWatcom compiler, and after modifying a couple of lines of code I was able to get past the compilation stage, but now I'm stuck at linking stage.
I got a lot of undefined references:
wlink name duke3d d all sys dos4g op st=90k op m op maxe=25 op q op symf @duke3d.lk1 Error! E2028: Shutdown_ is an undefined reference Error! E2028: KB_GetCh_ is an undefined reference Error! E2028: KB_FlushKeyBoardQueue_ is an undefined reference Error! E2028: PlayMusic_ is an undefined reference Error! E2028: Music_SetVolume_ is an undefined reference Error! E2028: testcallback_ is an undefined reference Error! E2028: _VINCE is an undefined reference Error! E2028: _VPLCE is an undefined reference Error! E2028: _EBPBAK is an undefined reference Error! E2028: _ESPBAK is an undefined reference Error! E2028: _FPUASM is an undefined reference Error! E2028: _BUFPLCE is an undefined reference Error! E2028: _PALOOKUPOFFSE is an undefined reference Error! E2028: _YLOOKUP is an undefined reference Error! E2028: _GLOBALX3 is an undefined reference Error! E2028: _GLOBALY3 is an undefined reference Error! E2028: _POW2CHAR is an undefined reference Error! E2028: _POW2LONG is an undefined reference Error! E2028: _ASM1 is an undefined reference Error! E2028: _ASM2 is an undefined reference Error! E2028: _ASM3 is an undefined reference Error! E2028: _ASM4 is an undefined reference Error! E2028: _RECIPTABLE is an undefined reference Error! E2028: setpalookupaddress_ is an undefined reference Error! E2028: sethlinesizes_ is an undefined reference Error! E3137: too many errors encountered
It looks like that it can find where these references are defined. Maybe I'm missing some libs ?
Thanks for the help!