X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Lorenzo Dieryckx" Newsgroups: comp.os.msdos.djgpp References: <200405171903 DOT i4HJ3tdN028349 AT envy DOT delorie DOT com> Subject: Re: problem with DJGPP's make Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: Date: Mon, 17 May 2004 19:31:58 GMT NNTP-Posting-Host: 213.224.114.17 X-Complaints-To: abuse AT telenet DOT be X-Trace: hestia.telenet-ops.be 1084822318 213.224.114.17 (Mon, 17 May 2004 21:31:58 CEST) NNTP-Posting-Date: Mon, 17 May 2004 21:31:58 CEST Organization: Telenet Internet To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > The right way to do this is: > > %.o : %.cpp $(HDRS) > Thanks!! looks a lot less complex :-) I'm still quite new to working with makefiles, so all hints like this one are greatly appreciated!! > Plus, try "make -nr" to show you what make would do without its > internal rules. It might help. OK, it helped! :-) But I still think the problem is quite strange. When I ran make -nr, it said "No rule to make FileByteSource.o, needed by libio.a" So I Checked out everything in the build rule. And it seems that spaces are not allowed before a multi-line-indicator (or whatever the correct name for a "\" might be in this case :-) ) My include variable was: INCLUDE = -I. \ # this is -I.\ -ID:/Include I compared it with a file that DID work, and noticed that the working file didn't have a space between the "." and the "\" So I removed the space in the non-working file, and PING!!!!! it worked!! I'm glad it's solved, but I still think it's quite a strange error. I wonder if any other people have had the same. Maybe you should add this to your FAQ, or is this a problem that also happens with the normal GNU Make? Anyway, thanks a lot!! Greets, Lorenzo