www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/14/20:03:44

Date: Sun, 14 Jan 1996 19:55:06 -0500
To: Evermore <airutz AT acs DOT ucalgary DOT ca>, djgpp AT sun DOT soe DOT clarkson DOT edu
From: Ian Viemeister <vmeister AT ios DOT com>
Subject: Re: I can't compile C++...

At 03:46 PM 1/14/96 -0700, Evermore wrote:
>"-v", it recognized that the file was indeed C++, and it went on it's 
>merry way until it started spitting out errors when it saw cin and cout 
>(BTW, I did #include<iostream.h>). It didn't give me line numbers for 

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)

Ian
vmeister AT ios DOT com


- Raw text -


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