Mail Archives: djgpp/1995/09/22/07:37:33
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:2119
|
Path: | news-dnh.mv.net!mv!news.sprintlink.net!simtel!swidir.switch.ch!newsfeed.ACO.net!alijku06!news
|
From: | Roland Exler <R DOT Exler AT jk DOT uni-linz DOT ac DOT at>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Example for auto-dependencies and pure_virtuals
|
Date: | 22 Sep 1995 07:54:09 GMT
|
Organization: | Institute for el. Measurement, University of Linz, Austria
|
Lines: | 80
|
Nntp-Posting-Host: | sensor4.emt.uni-linz.ac.at
|
To: | djgpp AT sun DOT soe DOT clarkson DOT edu
|
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp
|
This is a multi-part message in MIME format.
---------------------------------197322048531640
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
As there have been a question about how to write an makefile with
auto-dependencies and more questions about linking-problems using
pure-virtual functions I've extracted an example including both.
The files are class_a.h, class_a.cc, class_b.h, class_b.cc, class_c.h,
class_c.cc, main.cc and the makefile. One known problem with the
autodependencies is mentioned in the makefile.
The example compiles and runs fine on my machine (486/66DX2, 32M RAM,
DOS6.2 with HIMEM and EMM386) using djgpp 1.12m4.
Hope this helps,
Roland
+---------------------------------------+---------------------------+
I Roland Exler I EMAIL: I
I Universitaet Linz I R DOT Exler AT jk DOT uni-linz DOT ac DOT at I
I Institut fuer Elektrische Messtechnik I I
I Altenbergerstr. 69 I Phone: I
I A-4040 Linz, AUSTRIA I + 43 732 2468 9205 I
+---------------------------------------+---------------------------+
---------------------------------197322048531640
Content-Transfer-Encoding: base64
Content-Type: application/x-zip-compressed
UEsDBBQAAAAIAI5DNh/MyMwZWgAAAKQAAAAKAAAAQ0xBU1NfQS5DQ1POzEvOKU1JVbApLknJ
zNfLsOPlgospJeckFhfHJ+plKPFy8XKV5WemKECFrKzy8vM0NHm5qnm5FBQKijLzStI0lFAl
Y/KUNK15uWox9ZZlFpXg1gyRRegGAFBLAwQ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