View Single Post

   
  #3 (permalink)  
Old 01-17-2008, 05:35 AM
cppusr
 
Posts: n/a
Default Re: c++ header file location issue

Hi Uli,
Thanks for the response.
My point is, I am not able to compile a simple c++ prog using CC or
aCC as without specifying -I directive, the compile is not able to find
basic STL header files. These files are not present under default
include dir (/opt/CC/include or /opt/aCC/include).
For e.g. vector header is present only under /opt/aCC/include, and
iostream is not present in any of the include directory mentioned
above.
When I use c++ compiler on same machine, same program gets compiled
as well as run very well. The c++ default include dir
/usr/local/include/c++/3.3.2 contains all the STL related header files.

This made me think if CC or aCC installation might be under
problem.

I understand that there is not standard c++ compiler on HPUX, as it
needs to be installed. But, which is widely accepted compiler on HP-UX
?

Regards.
Ulrich.Teichert@gmx.de wrote:
> In <1157271844.520194.235500@i42g2000cwa.googlegroups .com> "cppusr" <bhandari_dhananjay@yahoo.com> writes:
>
> >Hi,
> > I am trying to compile c++ program on HP-UX PARISC B.11.00, using CC
> >compiler.
> > I am not able to locate basic files like vector, string, iostream
> >under /usr/include, instead they are located under /opt/aCC/include,
> >and /usr/local/include/c++/3.3.2/iostream.

>
> Yes, IIRC that's where the install writes them.
>
> > I am not much friendly with HP-UX, hence would like to know if CC
> >installation on my machine is in any kind of problem.

>
> I think it's just fine.
>
> > I need to have generic makefile for multiple platforms, and same
> >program is working fine wo any issues on linux, and solaris.

>
> I'm not getting the point. Any C++ compiler should be able to find the
> standard STL headers installed without any include (-I) directive.
>
> HTH,
> Uli
> --
> Dipl. Inf. Ulrich Teichert|e-mail: Ulrich.Teichert@gmx.de
> Stormweg 24 |listening to: Cauchemar (Opération S)
> 24539 Neumuenster, Germany|Good Looks, Big Deal (Sweatmaster)


Reply With Quote