Message-ID: <3873FF7B.DFB48EA2@wt.net> Date: Wed, 05 Jan 2000 20:35:39 -0600 From: Aaron Chernosky X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pdf MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: C++, Multiple Files, Classes Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 216-119-163-170.ipset45.wt.net X-Trace: 5 Jan 2000 20:33:53 -0600, 216-119-163-170.ipset45.wt.net Organization: World Trade Network, Inc. (WT.net) Lines: 26 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I have a header file with a class declaration in it, for ex this: -- header.h -- class MyClass { public: MyClass(); ~MyClass(); }; #inlcude "header.cpp" -- header.cpp -- MyClass::MyClass() { } MyClass::~MyClass() { } ---------------- When I include the header file into my main program and try to compile it, the error "Error: syntax error before '::'" numerous times, once for each function that's in the class. What is causing this? Aaron C