Date: Wed, 30 Dec 1998 11:09:25 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Ofer Corshid cc: djgpp AT delorie DOT com Subject: Re: Almost A perfect linking... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Tue, 29 Dec 1998, Ofer Corshid wrote: > This is my Makefile: > OBJS=main.o foo.o > CXXFLAGS=-Wall -g > > main: $(OBJS) > g++ $(CXXFLAGS) $(OBJS) -o main > > foo.o:foo.cc foo.hh > main.o:main.cc main.hh This is okay. But you didn't say what command did Make issue to compile foo.cc into foo.o (the above Makefile relies on the built-in rules, unless it's only a part of your Makefile). Since the linker complains about foo.o, I'd guess that the problem is in the way foo.o is created. Please post that information. The best way to present all the relevant info is to type these commands: del foo.o del main.o del main redir -o make.log -eo make main Then post the contents of the file make.log. (The `redir' utility is described in the DJGPP FAQ, section 6.14.)