Please Help: Which C compiler to compile Zork src
The C++ compiler I useually use (Bloodshed DevC++) won''t compile the game, so I thought I''d try a decent C compiler. Does anyone know of one that will compile the Zork source code found on this website ?
Thanks
The problem with that source code is that it is really old. A lot of the rules have changed since then which is probably your cause for grief. What you can try is shut off the ++ part of your compiler and make it compile C code instead of C++.
---
Make it work.
Make it fast.
"Commmmpuuuuterrrr.." --Scotty Star Trek IV:The Voyage Home
---
Make it work.
Make it fast.
"Commmmpuuuuterrrr.." --Scotty Star Trek IV:The Voyage Home
"None of us learn in a vacuum; we all stand on the shoulders of giants such as Wirth and Knuth and thousands of others. Lend your shoulders to building the future!" - Michael Abrash[JavaGaming.org][The Java Tutorial][Slick][LWJGL][LWJGL Tutorials for NeHe][LWJGL Wiki][jMonkey Engine]
April 26, 2002 03:13 PM
Hey!
I compiled Zork with Mingw32 which is same GCC port that DevC++ IDE uses and it worked fine for me.
It is ANSI C so make sure you compile it with C compiler and
you also have to add #DEFINE TEXTFILE to dinit.c file.
Something like mine where is the path to dtextc.dat file.
I compiled Zork with Mingw32 which is same GCC port that DevC++ IDE uses and it worked fine for me.
It is ANSI C so make sure you compile it with C compiler and
you also have to add #DEFINE TEXTFILE to dinit.c file.
Something like mine where is the path to dtextc.dat file.
dinit.c....#else /* ! unix *///line 29#define TEXTFILE "d:\zorksrc\dtextc.dat" //add this
April 27, 2002 04:22 AM
quote: Original post by Bogseat
...source code found on this website ?
http://www.gamedev.net/directory/links/category.asp?catid=24
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement