Operating System - HP-UX
1846884 Members
3019 Online
110256 Solutions
New Discussion

hellostrings.c:4:20: iostream: No such file or directory

 
Ramakrishnan K P
Occasional Contributor

hellostrings.c:4:20: iostream: No such file or directory

Hi,
Evidently the gcc binary at
/usr/local/bin is not able to locate the
iostream.h and string.h
at
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/include

Would someone please let me know how to link the gcc compiler binary to be able to find the
above files?

Thanks
Ramakrishnan

3 REPLIES 3
Procnus
Frequent Advisor

Re: hellostrings.c:4:20: iostream: No such file or directory

The include files you want are C++ files, yet the source file you reference is C. But besides that, you could try setting the CPATH environment variable to the directory or pass in the directory on the command line with the -I switch

Cheers
Steven
Ramakrishnan K P
Occasional Contributor

Re: hellostrings.c:4:20: iostream: No such file or directory

Hi,

I guess it is not able to locate the iostream.h or the string.h files

I set the ld_library_path to point to the include folder.
But the gcc compiler still is not able to look up these files.

May have to link the gcc binary to the include folder.
Could you send me the syntax for the linking?

I am a novice with C++ , UNIX so it'd be great to have the exact syntax for this

Thanks
Ramakrishnan
Ramakrishnan K P
Occasional Contributor

Re: hellostrings.c:4:20: iostream: No such file or directory

Hi,

This worked, LD_LIBRARY_PATH was adequately changed.

by giving /usr/local/pa20_64/lib

Please close this request.

Thanks
Ramki