Solved

g++ question?

Posted on 2000-05-11
3
301 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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 goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

809 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