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 ➜ SMAUG ➜ Compiling the server ➜ Smaug 1.4a Compilation Error

Smaug 1.4a Compilation Error

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


Posted by Curly   United Kingdom  (3 posts)  Bio
Date Thu 22 Jun 2006 11:18 AM (UTC)
Message
I have installed Smaug a couple of times and have had no real problems so was a bit confused when I finally got one.

One running the make all I get the following on Linux:

make smaug
make[1]: Entering directory `/home/curly/dist/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_move.c
act_move.c:393:15: warning: trigraph ??> ignored, use -trigraphs to enable
act_move.c: In function ‘generate_exit’:
act_move.c:604: error: invalid lvalue in assignment
make[1]: *** [act_move.o] Error 1
make[1]: Leaving directory `/home/curly/dist/src'
make: *** [all] Error 2

Any help would be appreciated

Thanks,
Top

Posted by Gadush   (92 posts)  Bio
Date Reply #1 on Thu 22 Jun 2006 11:15 PM (UTC)

Amended on Thu 22 Jun 2006 11:18 PM (UTC) by Gadush

Message
Go into your src folder, and open act_move.c with a text editor (www.textpad.com), then hit ctrl+g, and type in 604 (which is a line number). Then copy the segment around that, and post it up here so folks can see what is up. =)

Gadush

PS, don't forget to use the forum codes to enclose your code portion of the post.

Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #2 on Fri 23 Jun 2006 12:01 AM (UTC)
Message
This is actually something that comes up a fair amount. In fact, searching for generate_exit shows a fair number of people with the same problem.

The line in question is this: (EXIT_DATA *) pexit = xit;

If I remember correctly, pexit is of type EXIT_DATA** -- that is, a pointer to a pointer to an EXIT_DATA. I think that the correct line should be something like: *pexit = xit;.

The reason this error shows up only for some people is that the newer compilers are much pickier (in fact, they're much more correct regarding the language), and not everybody has the newest compilers.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
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,106 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.