- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: aCC compilation problems
Operating System - Linux
1753326
Members
4966
Online
108792
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
тАО01-21-2008 06:06 AM
тАО01-21-2008 06:06 AM
aCC compilation problems
I am working through the 32/64bit interoperabilty examples of:
http://h21007.www2.hp.com/portal/site/dspp/PAGE.template/page.document?ciid=4409276391695110VgnVCM100000275d6e10RCRD
My system is an rx running 11.23 and aCC version HP aC++/ANSI C B3910B A.06.00
as an example, I get tons of errors when compiling the code shmcrt.c of the above link. Any usage notes would help, I would have expeceted it to be fairly normal C.
TIA
http://h21007.www2.hp.com/portal/site/dspp/PAGE.template/page.document?ciid=4409276391695110VgnVCM100000275d6e10RCRD
My system is an rx running 11.23 and aCC version HP aC++/ANSI C B3910B A.06.00
as an example, I get tons of errors when compiling the code shmcrt.c of the above link. Any usage notes would help, I would have expeceted it to be fairly normal C.
TIA
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2008 08:02 AM
тАО01-21-2008 08:02 AM
Re: aCC compilation problems
I'd try to avoid anyone who uses a macro
like that "USAGE", but the big problem seems
to be the missing "\" characters on those
lines:
#define USAGE {\
fprintf(stderr, "usage:%s size [-s] \n",argv[0]);\
[...]
without which, you have a one-line macro
definition, followed by a bunch of code in
the middle of nowhere. (Note that the first
complaint refers to line 14, the one after
the "#define".)
> "shmcrt_l.c", line 46: error #2007: unrecognized token
> case `s':
^
> "shmcrt_l.c", line 46: error #2008: missing closing quote
> case `s':
^
Time for an "Introduction to C" course?
Try >'s'< instead of >`s'<.
like that "USAGE", but the big problem seems
to be the missing "\" characters on those
lines:
#define USAGE {\
fprintf(stderr, "usage:%s size [-s] \n",argv[0]);\
[...]
without which, you have a one-line macro
definition, followed by a bunch of code in
the middle of nowhere. (Note that the first
complaint refers to line 14, the one after
the "#define".)
> "shmcrt_l.c", line 46: error #2007: unrecognized token
> case `s':
^
> "shmcrt_l.c", line 46: error #2008: missing closing quote
> case `s':
^
Time for an "Introduction to C" course?
Try >'s'< instead of >`s'<.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2008 05:49 PM
тАО01-21-2008 05:49 PM
Re: aCC compilation problems
A.06.00 is no longer supported. The latest version is A.06.16. With newer versions of aCC6, you have the +w64bit option to flag these porting issues.
Unfortunately your other issues, as pointed out by Steven, are due to bad formatting on that web page. Though only one line in the USAGE macro is missing the "\" because the line was split. You seemed to lose the others. Please provide feedback on your issues by clicking on the "Contact us" link on the bottom of the page.
Other minor points to mention on your feedback:
That should be "int main" and "return 0;".
There are other cases of "`" vs "'".
Unfortunately your other issues, as pointed out by Steven, are due to bad formatting on that web page. Though only one line in the USAGE macro is missing the "\" because the line was split. You seemed to lose the others. Please provide feedback on your issues by clicking on the "Contact us" link on the bottom of the page.
Other minor points to mention on your feedback:
That should be "int main" and "return 0;".
There are other cases of "`" vs "'".
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