Date: Fri, 24 May 2002 14:18:07 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <2110-Fri24May2002141807+0300-eliz@is.elta.co.il> X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from Manni Heumann on 23 May 2002 14:59:29 GMT) Subject: Re: Need a little help with make References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Manni Heumann > Newsgroups: comp.os.msdos.djgpp > Date: 23 May 2002 14:59:29 GMT > > Sorry, this was not quite correct. The *.o files are only produced > when they are not up to date. But the error messge remains. > > > Was that before or after you started to use VPATH? If before, > > try adding VPATH and see if it helps. If after, please show > > your Makefile after all the changes. > > After! It happened after I added a VPATH statement. Here's my > makefile: > > TARGET = rs.exe > CC = gpp > VPATH=objs > OBJECTS = main.o cstring.o config.o data.o > > $(TARGET) : $(OBJECTS) > $(CC) $(OBJECTS) $(LDFLAGS) -o $(TARGET) > > %.o : %.cpp > $(CC) $< $(WARNINGS) $(CXXFLAGS) -c -o $(VPATH)\$@ Try using GPATH instead of VPATH. If that doesn't help either, try using a simpler Makefile: TARGET = rs.exe CC = gpp OBJECTS = objs/main.o objs/cstring.o objs/config.o objs/data.o $(TARGET) : $(OBJECTS) $(CC) $(OBJECTS) $(LDFLAGS) -o $(TARGET) objs/%.o : %.cpp $(CC) $< $(WARNINGS) $(CXXFLAGS) -c -o objs/$@