- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: C++ on HP-UX 11.23
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 06:34 PM
тАО10-12-2006 06:34 PM
What software environment do I need to compile and run C++ (object orinted) programs under HP-UX 11.23?
For example, now I use cc compiler and I get such errors:
Simple program text:
root@lev /home/igorps>more cout.c
#include
void main(){
cout << "Hello, World!\n";
}
root@lev /home/igorps>cc cout.c
Error 112: "cout.c", line 1 # Include file
#include
^^^^^^^^^^^^
Error (future) 355: "cout.c", line 2 # Function 'main' must return type 'int'.
void main(){
^^^^
Error 172: "cout.c", line 3 # Undeclared variable 'cout'.
cout << "Hello, World!\n";
^^^^
Warning: 1 future errors were detected and ignored. Add a '+p' option to detect and fix them before they become fatal errors in a future release. Behavior of this ill-formed program is not guaranteed to match that of a well-formed program
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 06:39 PM
тАО10-12-2006 06:39 PM
Re: C++ on HP-UX 11.23
You need to have either aCC or GCC to compile C++ programs in HP-UX 11.23. You can download them from these locations,
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9007AAEVAL
http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,7663,00.html
-Arun
- Tags:
- g++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 06:49 PM
тАО10-12-2006 06:49 PM
Re: C++ on HP-UX 11.23
GCC compiler couldn't find .h files
root@lev /home/igorps>/usr/local/bin/gcc cout.c
cout.c:1:22: iostream.h: No such file or directory
cout.c: In function `main':
cout.c:3: error: `cout' undeclared (first use in this function)
cout.c:3: error: (Each undeclared identifier is reported only once
cout.c:3: error: for each function it appears in.)
cout.c:2: warning: return type of 'main' is not `int'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2006 02:37 AM
тАО10-13-2006 02:37 AM
Solutionhttp://hpux.cs.utah.edu/
or
http://mirrors.develooper.com/hpux/downloads.html.
If gcc can't find iostream.h that means that it is installed incorrectly. The best way is to compile sources from www.gnu.org and then install them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2006 09:00 AM - edited тАО10-29-2011 12:53 AM
тАО10-13-2006 09:00 AM - edited тАО10-29-2011 12:53 AM
Re: C++ on HP-UX 11.23
You are trying to use an obsolete or bundled C compiler on IPF to compile C++ source.
>gcc compiler couldn't find .h files
The Standard name is <iostream> and not <iostream.h>. For aCC, you need -AA to compile with the Standard. -AP (the default on PA) only takes the <iostream.h> name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2006 08:18 AM
тАО10-16-2006 08:18 AM
Re: C++ on HP-UX 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2006 06:55 PM
тАО10-17-2006 06:55 PM
Re: C++ on HP-UX 11.23
Where can I download g++ ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2006 06:59 PM
тАО10-17-2006 06:59 PM
Re: C++ on HP-UX 11.23
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,7863,00.html