delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/10/03:56:14

Date: Wed, 10 Mar 1999 10:54:30 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Sean SaeHoon Chung <black_bunny AT mailcity DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: compiling problem.
In-Reply-To: <NNGNBEDNPMGICAAA@mailcity.com>
Message-ID: <Pine.SUN.3.91.990310105412.10442R-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 9 Mar 1999, Sean SaeHoon Chung wrote:

> the following is the whole makefile for the unix machine:
> 
> 
> stack_test: test.o stack.o
> 	cxx -g -w0 -o stack_test test.o stack.o
> 
> test.o: test.cc stack.h stack.o
> 	cxx -c -g -w0 test.cc
> 
> stack.o: stack.h stack.cc
> 	cxx -c -g -w0 stack.cc

Replace cxx with gxx, remove the -w0 option, and it should work.

Btw, I think it's wrong to have stack.o be a dependency of test.o, but
if it worked for you on Unix, it will work with DJGPP as well.

- Raw text -


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