From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: External Classes Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <8j0pv6$5h9$1 AT news DOT netvision DOT net DOT il> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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" 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 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/