vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. 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 need to have generic makefile for multiple platforms, and same program is working fine wo any issues on linux, and solaris. Regards. |
| |||
| 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) |
| |||
| 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) |
| ||||
| "cppusr" <bhandari_dhananjay@yahoo.com> writes: > Thanks for the response. Please do not top-post. > 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. Try 'man aCC'; then 'aCC -AA ...'. Don't use 'CC' -- it's ancient, and predates STL by several years. > 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. The problem is that you aren't reading the manual, and that HP choose not to enable standard C++ features by default (all in the name of compatibility, I am sure). Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. |