• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

g++ question?

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
yliu8
Asked:
yliu8
1 Solution
 
laeuchliCommented:
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
 
mournbladeCommented:
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
 
yliu8Author Commented:
I am using g++, not gcc.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Tackle projects and never again get stuck behind a technical roadblock.
Join Now