delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/24/03:47:47.1

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: External Classes
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <sfn8lso6iefk620ki6rjfb3j5g8vpg6h5o@4ax.com>
References: <8j0pv6$5h9$1 AT news DOT netvision DOT net DOT il>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 21
X-Trace: /KiKeXDLYdJbRDwv+k/Sy3Q8JizEx86rCqhqC72EZJhDoePLIZkDukpTwpT5Wvm4zssaePrxT3U+!QlQ4xecNFSlLYcq4YEtIB9c0SLMtsUwtHdes4xU/cR/FAFQVykufycT0LQtCvScQ/ju8MUD8VQuA!t0g3
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Sat, 24 Jun 2000 07:39:50 GMT
Distribution: world
Date: Sat, 24 Jun 2000 07:39:50 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Sat, 24 Jun 2000 02:01:27 +0300, "Avi Berkovich"
<berkovic AT netvision DOT net DOT il> wrote:

>For example, if I have a class compiled in an object file, how can I use it
>from my main program?

Move the class declaration out of class.cpp into class.h, and in both
class.cpp and main.cpp:

#include <class.h>

It's basic C++ language stuff; if you have any more questions about
the language (instead of about the compiler), ask in comp.lang.c++

-- 
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


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