I've got some mud code that compiles fine on our server, but not at home. Server == RedHat 5.2 Home == Mandrake 8.1 I've installed gcc (i believe) at home. I'm assuming i'm missing a standard library which i didn't install ..... The error is the following :- ----------------------------------------- [pure@echobase Src]$ make make ../Bin/Mud make[1]: Entering directory `/home/pure/Mud/Src' g++ -Wall -g -pipe -c -o Network.o Network.cc Network.cc: In function `void NonBlocking(int)': Network.cc:106: `exit' undeclared (first use this function) Network.cc:106: (Each undeclared identifier is reported only once for each function it appears in.) make[1]: *** [Network.o] Error 1 make[1]: Leaving directory `/home/pure/Mud/Src' make: *** [default] Error 2 [pure@echobase Src]$ ... #include <stdio.h> #include <errno.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include <arpa/inet.h> #include <netinet/in.h> #include <unistd.h> #include <fcntl.h> #include <ctype.h> .... .... void NonBlocking (int fd) { if (fcntl (fd, F_SETFL, fcntl (fd, F_GETFL, 0) | O_NONBLOCK)) { SystemLog ("NonBlocking", log_error_fatal, errno); exit (1); } } ... ----------------------------------------- Yes, this is custom file / code. I hope someone can understand this and suggest the appropriate packages to install ..... thank you kindly Regards : Pure Krome -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/06/01 PST