HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- use stl in hp_ux
Operating System - HP-UX
1833302
Members
3069
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
04-19-2002 12:25 AM
04-19-2002 12:25 AM
Hi,
I'm getting in trouble while using stl on HP_UX.
1."#include" and "using namespace std" can't be identified by aCC compiler,finally resolve it with add "-AA" option.Is there any better solution?
2.I have declare "#include", but errors still occured:
Error 419: "../incl/simpletype.h", line 23 # 'string' is used as a type, however has not been defined as a type.
virtual int push(string str, int val);
I have tried to change it into "#include" or add the actual path of string but all failed.
Could you give me your opinion?
Thanks
Jack
I'm getting in trouble while using stl on HP_UX.
1."#include
2.I have declare "#include
Error 419: "../incl/simpletype.h", line 23 # 'string' is used as a type, however has not been defined as a type.
virtual int push(string str, int val);
I have tried to change it into "#include
Could you give me your opinion?
Thanks
Jack
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 06:18 AM
04-19-2002 06:18 AM
Re: use stl in hp_ux
Is there someone who will give me some suggestion?
Thanks
Jack
Thanks
Jack
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 06:47 AM
04-19-2002 06:47 AM
Solution
Jack,
Using -AA is ok, all it does is force the latest set of libraries to be used which isn't a bad thing. See the online guide for more info:
http://docs.hp.com/hpux/onlinedocs/dev/aCC/a_03_33/options.htm#optioncap-AA
What release of the compiler are you running? Ensure you're up to date and have the latest patches installed. See the following page for release information:
http://dsportal.eservices.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1743,00.html
Does the string class work if you use it in a simple 'hello world' type program? To troubleshoot further, you could use the -P option to generate a .i file (which means only the preprocessing step is done). Then look through this file and make sure the string class is defined and typedef'd correctly.
Hopefully some of this points you in the right direction!
Regards,
Steve
Using -AA is ok, all it does is force the latest set of libraries to be used which isn't a bad thing. See the online guide for more info:
http://docs.hp.com/hpux/onlinedocs/dev/aCC/a_03_33/options.htm#optioncap-AA
What release of the compiler are you running? Ensure you're up to date and have the latest patches installed. See the following page for release information:
http://dsportal.eservices.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1743,00.html
Does the string class work if you use it in a simple 'hello world' type program? To troubleshoot further, you could use the -P option to generate a .i file (which means only the preprocessing step is done). Then look through this file and make sure the string class is defined and typedef'd correctly.
Hopefully some of this points you in the right direction!
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2002 06:32 PM
04-22-2002 06:32 PM
Re: use stl in hp_ux
Steven
Thanks a lot.I have gotten what I want.
It seems that there's much difference between HP_UX and other Unix/Linux while using C++ libraries and compiler.
Cheers
Jack
Thanks a lot.I have gotten what I want.
It seems that there's much difference between HP_UX and other Unix/Linux while using C++ libraries and compiler.
Cheers
Jack
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP