- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- aC++ New compiler error -AA
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
тАО06-19-2007 10:50 AM
тАО06-19-2007 10:50 AM
Error 140: "/opt/aCC/include_std/limits" line 596 #Invalid numeric constant.
_RWSTD_SPECIALIZE_LIMITS ( Unsigned char,
^^^^^^^^^^^^^^^^^^^^^^^^
That is the only change I made - the compiler flag. I am not explicitly including
Any leads would be appreciated.
Solved! Go to Solution.
- Tags:
- -AA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2007 10:55 AM
тАО06-19-2007 10:55 AM
Re: aC++ New compiler error -AA
You may be running into a problem with evil macros. Compile with +legacy_cpp and see what the error line looks like.
- Tags:
- evil macro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2007 11:22 AM
тАО06-19-2007 11:22 AM
Re: aC++ New compiler error -AA
aC++ = A.03.30
That's what my help page says.
aCC: warning 901: unknown option: `+legacy_cpp': use +help for online documentation.
Same error
Error 140: "/opt/aCC/include_std/limits", line 596 # Invalid numeric constant.
_RWSTD_SPECIALIZE_LIMITS (unsigned char,
I appreciate you assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2007 11:37 AM
тАО06-19-2007 11:37 AM
Re: aC++ New compiler error -AA
>aCC: warning 901: unknown option: +legacy_cpp:
You'll have to compile with -E -.i and then look at the .i file produced. Then look for the preprocessed line and check for evil macros.
Or take that .i file and compile it and see if the compiler points to the problem.
>That is the only change I made - the compiler flag.
Unless you have kept portability in mind, when you use -AA, you have to do a port.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 12:09 PM
тАО06-20-2007 12:09 PM
Re: aC++ New compiler error -AA
A.03.30 is obsolete - is it de-supported?
I do the exapansion thing and compile it and I get
Error 140: "/opt/aCC/include_std/limits", line 596 # Invalid numeric constant.
max () throw() { return 7_MAX; } static const bool is_signed = (7_MIN != 0); static const bool is_integer = (true);
^^^^^
Error 140: "/opt/aCC/include_std/limits", line 596 # Invalid numeric constant.
c const bool is_exact = (true); static const int digits = (1 == 7_MAX ? 1 : (8 * sizeof (unsigned char) - is_signed
^^^^^
Error 140: "/opt/aCC/include_std/limits", line 596 # Invalid numeric constant.
t bool is_bounded = (true); static const bool is_modulo = (1 != 7_MAX); static const bool traps = (false); static c
^^^^^
Error 140: "/opt/aCC/include_std/limits", line 596 # Invalid numeric constant.
cialized = (true); static unsigned char min () throw() { return 7_MIN; } static unsigned char max () throw() { retu
^^^^^
Error 140: "/opt/aCC/include_std/limits", line 596 # Invalid numeric constant.
{ return 7_MIN; } static unsigned char max () throw() { return 7_MAX; } static const bool is_signed = (7_MIN != 0)
^^^^^
7_MAX and 7_MIN seem to be the next suspects.
What do you think?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 12:45 PM
тАО06-20-2007 12:45 PM
SolutionYes. Essentially it was, as soon as the next patch was released, in Sept 2001.
>7_MAX and 7_MIN seem to be the next suspects.
Exactly. You have a macro UCHAR that is 7.
You need to undef it.
This bug wasn't fixed until A.03.33.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2007 10:52 AM
тАО06-21-2007 10:52 AM
Re: aC++ New compiler error -AA
That got it.
Many thanks.
What are the dates on the newest C and C++ compilers for HP_UX 11.0?
You told me A.03.55 is the last for C++.
When was that released?
And my C compiler is from 2000.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2007 11:14 AM
тАО06-21-2007 11:14 AM
Re: aC++ New compiler error -AA
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=8b080f1bace021100f1bace02110275d6e10RCRD
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=6208a8ea6ce02110a8ea6ce02110275d6e10RCRD
A.03.55 was released in 2004.
- Tags:
- secret decoder ring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2007 12:08 PM
тАО06-21-2007 12:08 PM
Re: aC++ New compiler error -AA
For C, you might also find this summary useful:
http://h21007.www2.hp.com/portal/site/dspp/PAGE.template/page.document?ciid=4b080f1bace021100f1bace02110275d6e10RCRD#11
Remember, HP-UX 11.0 (and its products) went out of support December 2006.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2007 12:18 PM
тАО06-21-2007 12:18 PM
Re: aC++ New compiler error -AA
Hi James,
Thanks for the note.
Desupported means I cannot get any updates on any products, correct?
I have to move the machine to a current HP_UX level to get any upgrades for
compilers?
I'm a developer, not an IT guys so thanks for your patience.