www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/17/20:39:10

From: rslists AT home DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Makefile question
Message-ID: <38d2cf3f.35417159@news>
X-Newsreader: Forte Free Agent 1.21/32.243
Lines: 31
Date: Sat, 18 Mar 2000 00:39:15 GMT
NNTP-Posting-Host: 24.65.239.223
X-Complaints-To: abuse AT home DOT net
X-Trace: news1.rdc1.ab.home.com 953339955 24.65.239.223 (Fri, 17 Mar 2000 16:39:15 PST)
NNTP-Posting-Date: Fri, 17 Mar 2000 16:39:15 PST
Organization: @Home Network Canada
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I use the following Makefile structure with UNIX but am getting an
error with DJGPP:

CXX=gpp
CC=gpp

PRJ=ltest.exe
OBJS= listTest.o date.o item.o list.o listIter.o node.o
$(PRJ): $(OBJS)                    # tab is at beginning of next line
	$(CCC) $(OBJS) -o $(PRJ)
$(OBJS): item.h date.h list.h listIter.h node.h

clean:
	/usr/bin/rm -f $(OBJS) $(PRJ)


This is what it looks like when it compiles:
gpp    -c -o listTest.o listTest.cc
gpp    -c -o date.o date.cc
gpp    -c -o item.o item.cc
gpp    -c -o list.o list.cc
gpp    -c -o listIter.o listIter.cc
gpp    -c -o node.o node.cc
listTest.o date.o item.o list.o listIter.o node.o -o ltest.exe
Load failed for image c:/mydocu~1/univer~1/listTest.o
make.exe: *** [ltest.exe] Error -1

Does anyone know what I need to change?

Thanks,
Reg

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019