On Thu, 1 Nov 2001, Pure Krome wrote: >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.) [...] >#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> Try <stdlib.h>. If you used conf.h & sysdep.h it would've been included for you. g++ is pickier about undeclared functions in later versions. -- George Greer greerga@circlemud.org -- +---------------------------------------------------------------+ | 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