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 ➜ MUDs ➜ General ➜ AFK help

AFK help

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


Posted by Ardentcrest   (47 posts)  Bio
Date Fri 08 May 2015 09:26 PM (UTC)
Message
I know this is not the site for AFK bit that site is a little bit on the quite side.

Trying to compile latest AFK. getting this error

Quote:

$ make
Building AFKMud....
make -j2 -s afkmud
Compiling o/imc.o....
Compiling o/act_info.o....
imc.cpp: In function ‘void imc_loop()’:
imc.cpp:2568:78: error: ‘select’ was not declared in this scope
if( select( this_imcmud->desc + 1, &in_set, &out_set, nullptr, &null_time ) < 0 )
^
Makefile:172: recipe for target 'o/imc.o' failed
make[1]: *** [o/imc.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:109: recipe for target 'all' failed
make: *** [all] Error 2


any help. Smaugfuss compiles ok
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 09 May 2015 03:27 AM (UTC)
Message
Where did you get the code from exactly?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Ardentcrest   (47 posts)  Bio
Date Reply #2 on Sat 09 May 2015 10:07 AM (UTC)
Message
Sorry,

Got it from smaugmuds

http://www.smaugmuds.org/files/AFKMud-221-473/

and also from the github.

both gave the same error
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #3 on Sat 09 May 2015 08:37 PM (UTC)

Amended on Sun 10 May 2015 07:43 PM (UTC) by Nick Gammon

Message
I couldn't find gd.h on my system but apart from that it compiled without errors.

What operating system are you using?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Ardentcrest   (47 posts)  Bio
Date Reply #4 on Sun 10 May 2015 07:21 PM (UTC)
Message
Windows 7.

Using Cygwin.

Smuag and smuagfuss both compile
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #5 on Sun 10 May 2015 07:57 PM (UTC)
Message
I'm getting a lot of errors relating to timezones, but imc.cpp compiled OK. Did you uncomment the cygwin line in the Makefile?


#Uncomment if compiling in Windows under Cygwin
CYGWIN = 1

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Ardentcrest   (47 posts)  Bio
Date Reply #6 on Sun 10 May 2015 08:03 PM (UTC)
Message
As always

I must be missing a library from Cygwin.
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.


18,734 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.