Mail Archives: djgpp/2002/06/14/06:00:36
Frank Krauss <fmfkrauss AT mindspring DOT com> 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.
- Raw text -