delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/09/16:13:55

To: djgpp AT delorie DOT com
Date: Tue, 09 Mar 1999 21:13:13 -0000
From: "Sean SaeHoon Chung" <black_bunny AT mailcity DOT com>
Message-ID: <NNGNBEDNPMGICAAA@mailcity.com>
Mime-Version: 1.0
X-Sent-Mail: off
X-Mailer: MailCity Service
Subject: compiling problem.
X-Sender-Ip: 206.18.105.5
Organization: MailCity (http://www.mailcity.lycos.com:80)
Reply-To: djgpp AT delorie DOT com

Hi,

I am copiling template class called stack.cpp
and test.cpp uses stack class.

which means test.o have to be dependent on not only test.cpp and stack.h but stack.o too...
like:

 test.o: test.cpp stack.h stack.o

and the following command is used for unix machine.	
     cxx -c -g -w0 test.cpp

but how am i supposed to let the DJGPP compiler know this kind of dependency ?

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


thanks alot..
---
  
         ^^^^^            
        (.) (.)             
         )---(            



Get your FREE Email at http://mailcity.lycos.com
Get your PERSONALIZED START PAGE at http://personal.lycos.com

- Raw text -


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