Mail Archives: djgpp/2001/03/19/13:18:50
This is a multi-part message in MIME format.
------=_NextPart_000_0039_01C0B076.FF0DD520
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
I have included my Makefile below.
I have searched the available resources and tried every possible =
variation I can think of but have not been able to resolve the below =
problem.
I have a program which compiles and runs both on a Sun system and Linux =
with no compiling or run-time errors. I use the same makefile for each =
environment. I have tried to compile using the DJGPP libraries and have =
compiled about half the source files but get the following error =
messages:
Curses.h:No such file or directory (ENOENT)
I am able to find Curses.h in c:\djgpp\contrib\pdcurs22 but I cannot =
get the compiler to find curses.h when compiling.
MAKEFILE:
OBJ =3D MAIN.o FNDOVRLP.o GRID.o INCRFNAM.o NEWNAME.o READNAME.o \
SIMULATE.o SNAPFACE.o SURVEY.o TRNSNAME.o=20
OBJ2 =3D MENU1.o MENU1GET.o USERIO.o SCREEN.o
INC =3D SNAPROTO.h SNAPSHOT.h MENU1LIB.h ENVIRON.h
OBJ3 =3D nrutil.o pmin.o
OBJ4 =3D tri.o canopy.o probe.o diss.o init.o svd.o centre.o cand.o
INC3 =3D base.h template.h
snap: $(OBJ) $(OBJ2) $(INC) $(INC3) $(OBJ3) $(OBJ4)=20
gcc -g -o survey $(OBJ) $(OBJ2) $(OBJ3) $(OBJ4) -lm -lcurses =
-ltermcap
.c.o: ; gcc -g -c $*.c
psnap: $(OBJ) $(OBJ2) $(INC) $(OBJ3)=20
purify -logfile=3Dpure_log gcc -g -o psnap $(OBJ) $(OBJ2) -lm \
-lcurses -ltermcap
Thank you for your time and consideration.
Mike Reddington
------=_NextPart_000_0039_01C0B076.FF0DD520
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>
<DIV><FONT size=3D2>Hello,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV>I have included my Makefile below.</DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>I have searched the available resources and tried =
every=20
possible variation I can think of but have not been able to resolve the =
below=20
problem.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I have a program which compiles and runs both on a =
Sun system=20
and Linux with no compiling or run-time errors. I use the same makefile =
for each=20
environment. I have tried to compile using the DJGPP libraries and have =
compiled=20
about half the source files but get the following error =
messages:</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Curses.h:No such file or directory =
(ENOENT)</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I am able to find Curses.h in =
c:\djgpp\contrib\pdcurs22 =20
but I cannot get the compiler to find curses.h when =
compiling.</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>MAKEFILE:</DIV>
<DIV> </DIV>
<DIV>OBJ =3D MAIN.o FNDOVRLP.o GRID.o INCRFNAM.o =
NEWNAME.o READNAME.o \<BR> =
SIMULATE.o =20
SNAPFACE.o SURVEY.o TRNSNAME.o <BR>OBJ2 =3D MENU1.o =20
MENU1GET.o USERIO.o SCREEN.o<BR>INC =3D SNAPROTO.h =20
SNAPSHOT.h MENU1LIB.h ENVIRON.h<BR>OBJ3 =3D =
nrutil.o =20
pmin.o<BR>OBJ4 =3D tri.o canopy.o probe.o diss.o init.o svd.o centre.o=20
cand.o<BR>INC3 =3D base.h template.h</DIV>
<DIV> </DIV>
<DIV>snap: $(OBJ) $(OBJ2) $(INC) $(INC3) $(OBJ3) $(OBJ4) =
<BR> gcc -g=20
-o survey $(OBJ) $(OBJ2) $(OBJ3) $(OBJ4) -lm -lcurses=20
-ltermcap</DIV>
<DIV> </DIV>
<DIV>.c.o: ; gcc -g -c $*.c</DIV>
<DIV> </DIV>
<DIV>psnap: $(OBJ) $(OBJ2) $(INC) $(OBJ3) <BR> purify=20
-logfile=3Dpure_log gcc -g -o psnap $(OBJ) $(OBJ2) -lm =
\<BR> -lcurses=20
-ltermcap</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Thank you for your time and =
consideration.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Mike =
Reddington</FONT></DIV></FONT></DIV></BODY></HTML>
------=_NextPart_000_0039_01C0B076.FF0DD520--
- Raw text -