Re: Is there an easy way to patch Nethack in XP?
- From: Derek Ray <derek@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 26 Sep 2009 12:49:41 -0500
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
.
- References:
- Is there an easy way to patch Nethack in XP?
- From: Link
- Re: Is there an easy way to patch Nethack in XP?
- From: Link
- Re: Is there an easy way to patch Nethack in XP?
- From: Derek Ray
- Re: Is there an easy way to patch Nethack in XP?
- From: Link
- Is there an easy way to patch Nethack in XP?
- Prev by Date: Re: YASD: Bag of holding
- Next by Date: unnethack autopickup
- Previous by thread: Re: Is there an easy way to patch Nethack in XP?
- Next by thread: Re: Is there an easy way to patch Nethack in XP?
- Index(es):
Relevant Pages
|