From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: ncurses support in djgpp on Linux Date: 14 Jun 2002 08:26:00 GMT Organization: Aachen University of Technology (RWTH) Lines: 39 Message-ID: References: <1024017326 DOT 876437356 AT news DOT mindspring DOT com> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1024043160 1662 137.226.32.75 (14 Jun 2002 08:26:00 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 14 Jun 2002 08:26:00 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Frank Krauss wrote: > dos-gcc program.c -lncurses > I got alot of error messages relating to header files missing: > ----------------------------------------------------------------- > program.c:27:24: sys/socket.h: No such file or directory > program.c:29:23: arpa/inet.h: No such file or directory > program.c:30:19: netdb.h: No such file or directory > program.c:33:64: curses.h: No such file or directory > ----------------------------------------------------------------- Of course you did --- DJGPP, in its default installation, does not include any networking, nor the ncurses library. If you need those, you'll have to install the relevant packages in addition to your current cross-DJGPP setup. For NCurses, you may have to replace PDCurses (pdc*.zip in the DJGPP ftp sites). For networking, you'll need a winsock library, or the wattcp stack. Note that DOS itself doesn't provide any TCP/IP networking whatsoever. > While searching on the Internet, I came across items that mentioned > that this was caused by a variable DJGPP not having been set > correctly to point to a file called djgpp.env. These items were referring to the native DJGPP installation, not to cross compilation. A cross compiler doesn't use djgpp.env --- but the programs built by it may need it. > I noticed that there are directories called include in both files. > If I place both files in the same place, will the two sets of include > directories overlay each other? You should never need both djcrx and djdev installed at the same time. djcrx is a mainly a subset of djdev, containing only those files that you need to build a cross-compilation environment. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.