Date: Sun, 2 Nov 1997 20:03:05 +0530 (IST) From: "Mahadevan R." To: Jos van Riswick Cc: djgpp AT delorie DOT com Subject: Re: (no subject?) In-Reply-To: <199711021312.OAA15278@vitellius.mbfys.kun.nl> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk Hi. On Sun, 2 Nov 1997, Jos van Riswick wrote: > I'm learning c++, and I'm using djgpp and bcc. The first > program I wrote, called test.cc reads: [..code..] > It compiles fine with bcc. However, gcc, no. It doesn't > compile. When I type at the command prompt: [..*lots* of info..] Relax. You just have to give: gcc test.cc -lgpp -otest.exe OR gxx test.cc -otest.exe The errors you were getting were because the C++ lib had not been linked. You can tell gcc to link in libgpp.a using the -lgpp option, or use gxx. "gxx " is identical to "gcc -lgpp -lstdcx -lm". HTH, Mahesh (Mahadevan R.),