- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: stat.h and __USING_STD_STAT : bug or feature?
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
тАО12-13-2010 10:59 PM
тАО12-13-2010 10:59 PM
The small program below compiled with HP C++ V7.3-009 for OpenVMS Alpha V8.4 gives a whole bunch of errors. Is this a bug or I am doing something that is not allowed?
#define __USING_STD_STAT 1
#include
main()
{}
Error log:
typedef __dev_t dev_t;
................^
%CXX-E-UNDECLARED, identifier "__dev_t" is undefined
at line number 66 in module STAT of text library SYS$COMMON:[SYSLIB]DECC$RTLDEF.
TLB;1
typedef __ino_t ino_t;
................^
%CXX-E-UNDECLARED, identifier "__ino_t" is undefined
at line number 71 in module STAT of text library SYS$COMMON:[SYSLIB]DECC$RTLDEF.
TLB;1
__dev_t st_dev; /* device id */
....^
%CXX-E-UNDECLARED, identifier "__dev_t" is undefined
at line number 171 in module STAT of text library SYS$COMMON:[SYSLIB]DECC$RTLDEF
.TLB;1
__ino_t st_ino; /* file number */
....^
%CXX-E-UNDECLARED, identifier "__ino_t" is undefined
at line number 172 in module STAT of text library SYS$COMMON:[SYSLIB]DECC$RTLDEF
.TLB;1
__dev_t st_rdev;
....^
%CXX-E-UNDECLARED, identifier "__dev_t" is undefined
at line number 178 in module STAT of text library SYS$COMMON:[SYSLIB]DECC$RTLDEF
.TLB;1
blksize_t st_blksize; /* filesystem-specific preferred I/O block size for
this file */
....^
%CXX-E-UNDECLARED, identifier "blksize_t" is undefined
at line number 191 in module STAT of text library SYS$COMMON:[SYSLIB]DECC$RTLDEF
.TLB;1
blkcnt_t st_blocks; /* number of blocks allocated for this file */
....^
%CXX-E-UNDECLARED, identifier "blkcnt_t" is undefined
at line number 192 in module STAT of text library SYS$COMMON:[SYSLIB]DECC$RTLDEF
.TLB;1
%CXX-I-MESSAGE, 7 errors detected in the compilation of "$DISK7:[joukj.TEST]TEST
.CXX;15".
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2010 11:30 PM
тАО12-13-2010 11:30 PM
Solution> allowed?
> #define __USING_STD_STAT 1
Try:
#define _USE_STD_STAT
Read more carefully.
/*
** This is the beginning of the standard stat structure definition.
** It is in effect if feature macro _USE_STD_STAT is defined.
*/
/*
** _USE_STD_STAT: The new standardized stat structure takes the place of
** all prior versions, if you compile with _USE_STD_STAT defined.
*/
Some macros are for your use, some are not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2010 11:46 PM
тАО12-13-2010 11:46 PM
Re: stat.h and __USING_STD_STAT : bug or feature?
That solves the problem.
You are right I should have read more carefully.
Jouk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2010 08:20 AM
тАО12-14-2010 08:20 AM
Re: stat.h and __USING_STD_STAT : bug or feature?
The (internal) macro __USING_STD_STAT which is often mistaken for the (public) macro _USE_STD_STAT shouldn't have been introduced in the first place, I believe.
Thanks,
-Boris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2010 08:48 AM
тАО12-14-2010 08:48 AM
Re: stat.h and __USING_STD_STAT : bug or feature?
> "alias" to _USE_STD_STAT.
Obviously not, or the original code would
have worked.
> If you look [...]
Look yourself?