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 ➜ SMAUG coding ➜ Ackmapper Help

Ackmapper Help

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


Posted by Minamus   (1 post)  Bio
Date Thu 21 Apr 2016 03:28 PM (UTC)
Message
I've been working on getting the Ackmapper to work with smaug 1.4 (i know its an old code) but a coder helping me got it down to these errors.

I'm completely lost on how to fix this because i'm not a coder and he is learning as well.

ackmapper.c: In function 'exit_string':
ackmapper.c:538:17: warning: implicit declaration of function 'exit_name' [-Wimplicit-function-declaration]

ackmapper.c:538:17: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat]
ackmapper.c: In function 'disp_map':

ackmapper.c:569:9: warning: field precision specifier '.*' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat]

ackmapper.c: In function 'MapArea':

ackmapper.c:648:46: error: 'EXIT_DATA' has no member named 'rdir'

make[1]: *** [ackmapper.o] Error 1

make: *** [all] Error 2
Top

Posted by Nick Gammon   Australia  (23,169 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 21 Apr 2016 07:58 PM (UTC)
Message
You've got one error and 3 warnings.

It's hard (impossible?) to say without seeing the code, but it looks like you are attempting to use a field "rdir" in a structure EXIT_DATA, which does not exist.

- 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.


10,126 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.