From: Frank Krauss Newsgroups: comp.os.msdos.djgpp Subject: ncurses support in djgpp on Linux Followup-To: comp.os.msdos.djgpp Date: Thu, 13 Jun 2002 21:13:05 -0400 Organization: - Lines: 56 Message-ID: <1024017326.876437356@news.mindspring.com> NNTP-Posting-Host: a5.f7.23.3e Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit X-Server-Date: 14 Jun 2002 01:15:58 GMT X-Newsreader: KRN http://ultra7.unl.edu.ar To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello everyone, I have a Pentium-4 running Linux Kernel 2.4.18. I have a need to create Executables to run on a DOS/Windows System. I therefore thought that the Linux-x-djgpp Cross Compiler System would be perfect for me. I followed the procedure described in Building a Linux-x-djgpp Cross Compiler www.delorie.com/howto/djgpp/linux-x-djgpp.html. I specifically only downloaded and unziped the file djcrx203.zip. It went perfect and I was able to create and run successfullly a little HelloWorld program. I then attempted to assemble my actual program, which uses ncurses, doing the following command: 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 ----------------------------------------------------------------- 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. In the Cross Compiler doc there was no mention of this Variable or this file. I found the file in the djdev203.zip file. There was no mention that I needed to download this file. If this is needed could someone please tell em where I should place it. Should it be in the same place as I put the djcrx203.zip file? 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? All the examples that I see on the internet show how to set this variable up for running under DOS. Could someone tell me what I have to do in order to properly point this variable under Linux? Any help that someone would give me to get DJGPP to run successfully on my System with ncurses would be greatly appreciated. Yours truly, Frank Krauss