Duke4.net Forums: Compiling Duke Nukem 3D Source Code (For Fun) - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Compiling Duke Nukem 3D Source Code (For Fun)

User is offline   Luca91 

#1

Hi all,
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!
0

User is offline   Luca91 

#2

Anyone ? :/
0

User is offline   Hendricks266 

  • Weaponized Autism

  #3

http://www.openwatco...Common_Pitfalls

Are you sure you're linking the engine object? If you are, perhaps you need to recompile the engine in OpenWatcom using Ken's source.
0

User is offline   oasiz 

  • Dr. Effector

#4

Only advice I can give is that I used watcom 11 instead of open watcom when compiling (William Shatner's) TekWar from the sources.
With openwatcom I got thrown a bunch of errors in my face while with the non-free it went trough without much trouble.

Not sure if you can go around that with some compatibility flag, didn't bother too much investigating it.
0

User is offline   Kyanos 

#5

Quote

======================================================
HOW TO COMPILE THE SOURCE CODE (by Charlie Wiederhold)
======================================================

This source code release was compiled on March 20th, 2003 using the materials in this archive.

Duke was originally written with the Watcom 10.0 C/C++ compiler. This code has been updated to allow it to compile under the free version of the Watcom compiler available from their webpage (http://www.openwatcom.org).

readme.txt in the source release I have.
0

User is offline   m96 

#6

What version of Watcom are you using?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options