From: caramaith Newsgroups: comp.os.msdos.djgpp Subject: Re: odd compiler error in DJGPP... Date: Mon, 06 Mar 2000 02:15:19 +0100 Organization: T-Online Lines: 17 Message-ID: <38C306A7.7BBC77A1@myokay.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news07.btx.dtag.de 952305452 12863 320054133135-0001 000306 01:17:32 X-Complaints-To: abuse AT t-online DOT de X-Sender: 320054133135-0001 AT t-dialin DOT net X-Mailer: Mozilla 4.7 [de] (Win98; I) X-Accept-Language: de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com sorry, I should have stated, that CppLib.cpp is the object-file to CppLib.h, which is the header-file included in CppLibTest.cpp - so the could from the compiled CppLib.cpp (CppLib.o then) should be included naturally, shouldnt it???? Eli Zaretskii schrieb: > > On Sun, 5 Mar 2000, caramaith wrote: > > > it's the CppLib.h, CppLib.cpp and CppLibTest.cpp from Chapter 4 of > > Volume One of TIC++. Here they come... > > There are 2 source files in this program: CppLib.cpp and CppLibTest.cpp, > but your command only passed CppLibTest.cpp to the compiler. That's why > the linker complains: it cannot find the functions that are defined in > the second file, CppLib.cpp.