Solved

g++ question?

Posted on 2000-05-11
3
304 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

696 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