HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: export reserved keyword
Operating System - HP-UX
1834772
Members
2943
Online
110070
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
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
02-26-2001 07:21 AM
02-26-2001 07:21 AM
export reserved keyword
I am trying to build our application on a brand new HP R390 with
HP aC++ B3910B A.01.27
HP aC++ B3910B A.01.19.02 Language Support Library
the op. sys version is the 10.20.
We get an error (future one) in one of the HP include file shippet with the compiler software :
Error (future) 908: "/usr/include/nfs/nfs.h", line 600 # 'export' is a C++
keyword, even if it is not currently used as a keyword by aCC. You should
avoid using it as an identifier.
extern int exportfs(const char *, const struct export *);
^^^^^^
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
Is there any "clean" solution to my problem?
Thanks.
HP aC++ B3910B A.01.27
HP aC++ B3910B A.01.19.02 Language Support Library
the op. sys version is the 10.20.
We get an error (future one) in one of the HP include file shippet with the compiler software :
Error (future) 908: "/usr/include/nfs/nfs.h", line 600 # 'export' is a C++
keyword, even if it is not currently used as a keyword by aCC. You should
avoid using it as an identifier.
extern int exportfs(const char *, const struct export *);
^^^^^^
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
Is there any "clean" solution to my problem?
Thanks.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2001 01:17 PM
02-26-2001 01:17 PM
Re: export reserved keyword
Hi,
While it will not matter now, a future release of the compiler may use the "export" keyword and then your program will not compile. The obvious solution is to change the name of the "export" identifier to something else, say, "exprt", in all of your source files.
Be careful how you change "export". You don't want to change "exportfs" to "exprtfs". From vi, you can issue
:%s/\/exprt/g
to hit the whole file. (The \< and \> anchors the beginning and end of a word.)
--Bruce
While it will not matter now, a future release of the compiler may use the "export" keyword and then your program will not compile. The obvious solution is to change the name of the "export" identifier to something else, say, "exprt", in all of your source files.
Be careful how you change "export". You don't want to change "exportfs" to "exprtfs". From vi, you can issue
:%s/\
to hit the whole file. (The \< and \> anchors the beginning and end of a word.)
--Bruce
www.stratech.com/training
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