[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  ROM
. -> [Folder]  Compiling the server
. . -> [Subject]  Problem compiling Rom246OLC

Problem compiling Rom246OLC

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Terron   (2 posts)  [Biography] bio
Date Tue 15 Jan 2002 12:22 PM (UTC)

Amended on Tue 20 Nov 2007 04:18 AM (UTC) by Nick Gammon

Message
I currently have Cygnus running on Win 98 with GCC.

I downloaded rom source from ftp://ftpgame.org/pub/mud/diku/merc/rom/Rom24b6OLC.tar.gz

I get this error message when try to compile:

[rom24]$make
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND act_comm.c
act_comm.c: In function `do_delete':
act_comm.c:67: `PLAYER_DIR' undeclared (first use in this functio
act_comm.c:67: (Each undeclared identifier is reported only once
act_comm.c:67: for each function it appears in.)
make: *** [act_comm.o] Error 1


Now, i take it that somewhere Player_dir has not been defined? which i thought was in merc.h? but it seems to be their.

Any clues?
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Tue 15 Jan 2002 09:54 PM (UTC)
Message
Yes, if the platform is defined (eg. unix) see below.




#if defined(unix)
#define PLAYER_DIR "../player/" /* Player files */
#define GOD_DIR "../gods/" /* list of gods */
#define TEMP_FILE "../player/romtmp"
#define NULL_FILE "/dev/null" /* To reserve one stream */
#endif


Try adding -Dunix and see what happens.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Terron   (2 posts)  [Biography] bio
Date Reply #2 on Wed 16 Jan 2002 02:45 PM (UTC)
Message
I'm not sure which file to try it in, so tryed it in the makefile, Merc.h and the Act_comm.c file. None of them seemed to work?

Perhaps i'm putting it in the wrong place?

Could you describe where to put the -DUNIX?
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Wed 16 Jan 2002 09:43 PM (UTC)
Message
At the start of Makefile, you could put it ...


CC = gcc
PROF = -O -g
NOCRYPT =
C_FLAGS = -Wall $(PROF) $(NOCRYPT) -Dunix
L_FLAGS = $(PROF)



"unix" is lower case, not UNIX.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Darkflame   (10 posts)  [Biography] bio
Date Reply #4 on Mon 21 Jan 2002 05:06 AM (UTC)
Message
I tried compiling it and it got past db.o and the others but then it got this


special.c: In function `spec_string':
special.c:1037: subscripted value is neither array nor pointer
make: *** [special.o] Error 1

[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #5 on Mon 21 Jan 2002 10:21 AM (UTC)
Message
Can't explain that. Can you post a few lines around line 1037 in special.c, such as 1030 to 1040?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


14,960 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]