AFK help

Posted by Ardentcrest on Fri 08 May 2015 09:26 PM — 7 posts, 25,132 views.

#0
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
Australia Forum Administrator #1
Where did you get the code from exactly?
#2
Sorry,

Got it from smaugmuds

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

and also from the github.

both gave the same error
Australia Forum Administrator #3
I couldn't find gd.h on my system but apart from that it compiled without errors.

What operating system are you using?
Amended on Sun 10 May 2015 07:43 PM by Nick Gammon
#4
Windows 7.

Using Cygwin.

Smuag and smuagfuss both compile
Australia Forum Administrator #5
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
#6
As always

I must be missing a library from Cygwin.