Re: Is there an easy way to patch Nethack in XP?



On 2009-09-26, Link <chillynois@xxxxxxxxx> wrote:
On Sep 26, 8:17 am, Derek Ray <de...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
I decided to get the source code from svn://sporkhack.com/nh, and
tried to compile that. I commented out the regex, and now I get a
bunch of yacc error messages like "/util/lev_yacc.c:1213: error:
syntax error before '->' token". Would it be easier if I installed
the regex headers and libraries?

The two errors aren't related.

Nethack ships with a default set of prebuilt util/*.c files that match
its default level compiler, and has all the lex/yacc calls commented out
when making under WIN32 or DOS. The compiler's been changed significantly
since then though, so it won't work for you; to make it work on Windows
you have to get a version of lex and yacc (or flex and bison) and
uncomment all the appropriate parts in the makefile so that it will
correctly rebuild the util/*.c files to a current definition.

If you run into trouble with yacc, try changing it to use the "-y" option;
I ran into some trouble with that previously due to Windows' parsing
things differently.

--
Derek

Game info and change log: http://sporkhack.com
Beta Server: telnet://sporkhack.com
IRC: irc.freenode.net, #sporkhack
.



Relevant Pages

  • Re: Doing RegEx in D3
    ... You're missing the bridge concept. ... For example, with jBASE ... RegEx speed are in the RegEx compiler (compile it once, ...
    (comp.databases.pick)
  • Re: Negative lookahead regex clarification needed
    ... Every regex engine in existence ... Processing on-the-fly and compilation don't exclude one another. ... > within the text, you don't have a correct statement. ... If the regex engine cannot translate your string, it's a syntax error. ...
    (comp.lang.perl.misc)
  • Re: MATLAB Compiler 4.6 Problems
    ... When I try to compile a file from MATLAB into a stand alone C++ ... 146 syntax error; found `void' expecting `;' ... Error libmatrix.cpp: 147 illegal statement termination ...
    (comp.soft-sys.matlab)
  • Re: C scripting (continued)
    ... The code will compile and run under windows and unix... ... And fix the memory leak that you ... This is a syntax error. ... A program that introduces syntax errors when it re-formats code ...
    (comp.lang.c)
  • Re: in the elemetns of programming perl , I need help with 2 lines that I dont understand
    ... To compile the regex. ... In the original program, the regexes use the o ...
    (perl.beginners)