delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/02/09:31:54

Date: Sun, 2 Nov 1997 20:03:05 +0530 (IST)
From: "Mahadevan R." <mdevan AT md2 DOT vsnl DOT net DOT in>
To: Jos van Riswick <josvanr AT mbfys DOT kun DOT nl>
Cc: djgpp AT delorie DOT com
Subject: Re: (no subject?)
In-Reply-To: <199711021312.OAA15278@vitellius.mbfys.kun.nl>
Message-Id: <Pine.OSF.3.95.971102195330.4452C-100000@md2.vsnl.net.in>
Mime-Version: 1.0

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 <args>" is identical to "gcc <args> -lgpp -lstdcx -lm".


HTH,
Mahesh (Mahadevan R.), <mdevan AT iname DOT com>


- Raw text -


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