- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cc bug function
Operating System - HP-UX
1753808
Members
7626
Online
108805
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
Discussions
Discussions
Forums
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
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
тАО10-26-2001 04:05 AM
тАО10-26-2001 04:05 AM
cc bug function
Hell
I use the cc compiler on HPUX10.20.
i made a function
void main()
{ int fd;
fd =open ( "file",O_RDONLY);
close (fd);
}
And i have this error when compiling
cc: "file" line 6 error 1588 :
"O_RDONLY" undefined
can you help me, it is a wrong syntaxe or i need patch for my station ?
thanks
I use the cc compiler on HPUX10.20.
i made a function
void main()
{ int fd;
fd =open ( "file",O_RDONLY);
close (fd);
}
And i have this error when compiling
cc: "file" line 6 error 1588 :
"O_RDONLY" undefined
can you help me, it is a wrong syntaxe or i need patch for my station ?
thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2001 04:19 AM
тАО10-26-2001 04:19 AM
Re: cc bug function
Try including fcntl.h, i.e.:
#include
-Santosh
#include
-Santosh
Life is what's happening while you're busy making other plans
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2001 04:52 AM
тАО10-26-2001 04:52 AM
Re: cc bug function
Hi Gross:
Your problem is that you have not told the c preprocessor where to look for defines. In this case the answer is fcntl.h (File Control).
You can save yourself quite a bit of trouble if you add these includes to just about all c programs.
#include
#include
#include
The <> tell tell c preprocess to look in the 'standard' locations or those defined with a -I cc option.
Your problem is that you have not told the c preprocessor where to look for defines. In this case the answer is fcntl.h (File Control).
You can save yourself quite a bit of trouble if you add these includes to just about all c programs.
#include
#include
#include
The <> tell tell c preprocess to look in the 'standard' locations or those defined with a -I cc option.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2001 04:56 AM
тАО10-26-2001 04:56 AM
Re: cc bug function
But I made it.
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP