- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- aCC compiler ?
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
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-08-2004 08:29 PM
тАО12-08-2004 08:29 PM
May i know can we use the aCC which the HP c++ compiler to compile C program , i try but some function deprecated message thrown out, some function not defined.
help needed.
thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2004 08:53 PM
тАО12-08-2004 08:53 PM
Re: aCC compiler ?
In HP-UX, you shouldn't use aCC for both C & C++ applications. you have to use corresponding compilers for applications.
C - CC Or gcc
C++ - aCC
Note:
In Linux, there is only one compiler for both C and C++.
- Durai.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2004 02:35 AM
тАО12-09-2004 02:35 AM
SolutionYou are finding that aCC is pickier about function usages and older/questionable constructs. The functions not defined means that header files are missing or the linker can find the function in the list of libraries and objects that you supplied to the command. You can also control the warning with -Ae or -Aa options and you have the ability to suppress specific warnings but normally the better answer is to modernize your syntax.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2004 03:52 PM
тАО12-09-2004 03:52 PM
Re: aCC compiler ?
you are right, i try the aCC -Ae -O sample.c then it work , you are right but what is the K&R syntax?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2004 03:52 AM
тАО12-10-2004 03:52 AM
Re: aCC compiler ?
Go directly to jail; do not pass Go; do not collect $200.00.
K&R refers to "Brian W. Kernighan" and "Dennis M. Ritchie"; they wrote the first widely available description of the C language. Do a google search on either of these and you will get many, many hits -- plus references to their book.
K&R C looks like this:
int main(argc,argv)
int argc;
char *argv[];
{
}
whereas the newer ANSI/C looks like this:
int main(int argc; char *argv[])
{
}
Also, have you ever heard of a little utility called "awk". I'll give you one guess
as to who the "k" represents.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2004 10:09 PM
тАО12-16-2004 10:09 PM