Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ ROM ➜ Compiling the server ➜ Problem compiling Rom246OLC

Problem compiling Rom246OLC

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


Posted by Terron   (2 posts)  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?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  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
Top

Posted by Terron   (2 posts)  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?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  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
Top

Posted by Darkflame   (10 posts)  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

Top

Posted by Nick Gammon   Australia  (23,173 posts)  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
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.


21,081 views.

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

Go to topic:           Search the forum


[Go to top] top

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