delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/29/08:43:21

Date: Tue, 29 Dec 1998 15:42:29 +0200 (IST)
From: Ofer Corshid <oferco AT cs DOT huji DOT ac DOT il>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
cc: djgpp AT delorie DOT com
Subject: Re: Almost A perfect linking...
In-Reply-To: <Pine.SUN.3.91.981229101948.15836M@is>
Message-ID: <Pine.SUN.3.96.981229153709.20849A-100000@pita.cs.huji.ac.il>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Hello,

I tried to compile and linke it using gmake and it gave
me the same result. 

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



On Tue, 29 Dec 1998, Eli Zaretskii wrote:

> 
> On Mon, 28 Dec 1998, oferco wrote:
> 
> > foo.o: file not recognized: File truncated
> > make: *** [moo] Error 1
> > 
> > Of course, foo.cc & foo.hh, moo.cc and moo.hh, are part of the program.
> > Both are compiled OK. 
> 
> Please post the exact command(s) used to compile and link the relevant
> files.  Since this was done via Make, please also post the relevant
> parts of the Makefile you used.
> 

- Raw text -


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