www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/17/11:09:51

Date: Wed, 17 Jan 1996 11:01:14 -0500
To: dannyyoo AT ix DOT netcom DOT com (Danny Yoo), djgpp AT delorie DOT com
From: Ian Viemeister <vmeister AT ios DOT com>
Subject: Re: I can't compile C++...

At 01:47 AM 1/16/96 GMT, Danny Yoo wrote:
>Ian Viemeister <vmeister AT ios DOT com> wrote:
>>You have forgotten to add -lgpp to the gcc command line. This tells 
>>the linker to add in the C++ libs. Please note, this is likely the 
>>*most* Frequently Asked Question about compiling C++, and it is 
>>answered in the FAQ (faq102.zip at the DJGPP sites)
>
>	I'm having the same stupid problem, but I AM using
>gcc -lgpp [filename], and it still does it.  Here's my program and the
>output:

Put the -lgpp option *after* the file you are compiling:

                gcc [filename] -lgpp

That will work properly
Ian
vmeister AT ios DOT com

- Raw text -


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