Solved

g++ question?

Posted on 2000-05-11
3
298 Views
Last Modified: 2010-04-02
We have our gcc and g++ installed
under sun6000.  However when I try
to compile some c++ file, it
complains "cannot find iostream.h"
.  iostream.h is in /usr/local/include/g++
, how can I let g++ to know that.


0
Comment
Question by:yliu8
3 Comments
 
LVL 5

Expert Comment

by:laeuchli
ID: 2801182
I used to get that error. I was compiling with gcc instead of g++. Maybe you are not as dumb as I am. Just check and make sure.
0
 
LVL 1

Accepted Solution

by:
mournblade earned 25 total points
ID: 2801545
weird that it doesn't find it but to specify an include directory:

g++ -I<dir>

or in your case

g++ -I/usr/local/include/g++
0
 

Author Comment

by:yliu8
ID: 2801547
I am using g++, not gcc.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now