delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/30/07:05:14

Date: Wed, 30 Dec 1998 11:09:25 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Ofer Corshid <oferco AT cs DOT huji DOT ac DOT il>
cc: djgpp AT delorie DOT com
Subject: Re: Almost A perfect linking...
In-Reply-To: <Pine.SUN.3.96.981229153709.20849A-100000@pita.cs.huji.ac.il>
Message-ID: <Pine.SUN.3.91.981230110858.21377R-100000@is>
MIME-Version: 1.0
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.)

- Raw text -


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