delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/15/10:27:05

Date: Mon, 15 Jan 1996 17:13:54 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Danny Yoo <dannyyoo AT ix DOT netcom DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: Newbie help?

On Sat, 13 Jan 1996, Danny Yoo wrote:

> 	I've scanned into the faq, but I can't find what I'm doing
> wrong: I'm trying to compile a simple "Hello World" program in C++.
> In the command line, I type
> 
> gcc test.cpp -lgpp
> 
> 	It starts spewing information how iostream& member is
> undefined.  I try adding -lpc and -lm, but nothing seems to work.  I'm
> using 1.12 Maint 4 with Win95.  Thanks!

Do the error messages appear while compiling or while linking?  Does, for 
example, `gcc -c test.cpp' work without any messages?  If not, it might 
be some source-level error in test.cpp (is that written by you?).

In any case, it's best to post at least one example of the error 
messages.  It is very hard to guess what the problem might be without 
seeing neither the message nor the code that triggered it.

I'd also suggest you use -Wall switch when compiling: it's great in 
detecting errors, especially if you are new to GCC/C++ programming.

- Raw text -


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