Solved

g++ question?

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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 goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

778 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