- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Error message for strrchr()
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
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
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
05-19-2008 07:24 AM - last edited on 03-14-2013 06:55 PM by Maiko-I
05-19-2008 07:24 AM - last edited on 03-14-2013 06:55 PM by Maiko-I
Error message for strrchr()
Hi.
I would like to keep this description short and simple…
In a source code I am using strrchr() as…
char * pvNameStr=strrchr(mName.c_str(),'/');
I tried to build this code with aCC compiler version “A.03.39” with ‘what’ string as
$Revision: 92453-07 linker linker crt0.o B.11.30 020412 $
HP aC++ B3910B A.03.39
HP aC++ B3910B A.03.33 Language Support Library
HP-UX version B.11.00.
The code complied without any error, but when I tried compiling it on aCC with version “A.03.73” with what string as…
$Revision: 92453-07 linker linker crt0.o B.11.47 051104 $
HP aC++ B3910B A.03.73
HP aC++ B3910B A.03.66 Classic Iostream Library
HP aC++ B3910B A.03.66 Language Support Library
and HP-UX version B.11.11; I got following error message …
“Cannot initialize ‘char *’ with ‘const char *’”
I know I need to collect the return val of strrchr() in const char *, but who come then it was supported on older aCC version?
Has then change been incorporated in later versions of aCC?
Thanks
Rakesh.
P.S. This thread has been moved from Itanium Based - Experts Online Now!!! to HP-UX > languages - HP Forums moderator
- Tags:
- strrchr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2008 10:57 PM
07-10-2008 10:57 PM
Re: Error message for strrchr()
http://forums.itrc.hp.com/service/forums/categoryhome.do?categoryId=150
Especially since you are asking about an obsolete PA-RISC compiler.
>I know I need to collect the return val of strrchr() in const char*, but who come then it was supported on older aCC version?
Because you used -AA, where before the Standard C++ strrchr overloads are missing with the default -AP.