- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: error #20: identifier "float_round_style" is ...
Operating System - HP-UX
1745783
Members
3626
Online
108722
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
тАО08-11-2008 04:02 AM
тАО08-11-2008 04:02 AM
error #20: identifier "float_round_style" is undefined
Hi,
While trying to build on HP-UX B.11.23 U ia64, using thirdparty front end to compile, I am getting the following error:
"/usr/include/math.h", line 1147: error #77-D: this declaration has no storage
class or type specifier
__inline float fabsf(float __x) { return _Asm_fabs(__x); }
^
"/usr/include/math.h", line 1147: error #65: expected a ";"
__inline float fabsf(float __x) { return _Asm_fabs(__x); }
"/opt/aCC.06.15/opt/aCC/include/cmath", line 24: error #20: identifier
"_Asm_fabs" is undefined
inline double fabs(double x) { return _Asm_fabs(x); }
^
"/opt/aCC.06.15/opt/aCC/include/cmath", line 26: error #20: identifier
"_Asm_fabs" is undefined
inline double abs (double x) { return _Asm_fabs(x); }
^
"/opt/aCC.06.15/opt/aCC/include/limits", line 153: error #20: identifier
"float_round_style" is undefined
static const float_round_style round_style;
^
"/opt/aCC.06.15/opt/aCC/include/limits", line 225: error #20: identifier
"float_round_style" is undefined
const float_round_style numeric_limits::round_style = round_toward_zero;
^
"/opt/aCC.06.15/opt/aCC/include/limits", line 332: error #20: identifier
"float_round_style" is undefined
static const float_round_style RWSTDExportTemplate round_style __RW_INIT(RWS
TD_STATIC_CAST(float_round_style,FLT_ROUNDS));
^
detected during instantiation of class "numeric_limits" at
line 285
"/opt/aCC.06.15/opt/aCC/include/limits", line 332: error #321: data member
initializer is not allowed
static const float_round_style RWSTDExportTemplate round_style __RW_INIT(RWS
TD_STATIC_CAST(float_round_style,FLT_ROUNDS));
^
detected during instantiation of class "numeric_limits" at
line 285
In addition, I have provided the following includes while builing the front end compiler using aCC 6.15.
#if defined(__ia64)
v_argv[n++] ="-I/opt/aCC.06.15/opt/aCC/include";
v_argv[n++] ="-I/opt/aCC.06.15/opt/aCC/include/iostream";
v_argv[n++] ="-I/opt/aCC.06.15/opt/aCC/include_std";
v_argv[n++] ="-I/usr";
#endif
Any suggestion would be appreciated.
Regards,
Neel
While trying to build on HP-UX B.11.23 U ia64, using thirdparty front end to compile, I am getting the following error:
"/usr/include/math.h", line 1147: error #77-D: this declaration has no storage
class or type specifier
__inline float fabsf(float __x) { return _Asm_fabs(__x); }
^
"/usr/include/math.h", line 1147: error #65: expected a ";"
__inline float fabsf(float __x) { return _Asm_fabs(__x); }
"/opt/aCC.06.15/opt/aCC/include/cmath", line 24: error #20: identifier
"_Asm_fabs" is undefined
inline double fabs(double x) { return _Asm_fabs(x); }
^
"/opt/aCC.06.15/opt/aCC/include/cmath", line 26: error #20: identifier
"_Asm_fabs" is undefined
inline double abs (double x) { return _Asm_fabs(x); }
^
"/opt/aCC.06.15/opt/aCC/include/limits", line 153: error #20: identifier
"float_round_style" is undefined
static const float_round_style round_style;
^
"/opt/aCC.06.15/opt/aCC/include/limits", line 225: error #20: identifier
"float_round_style" is undefined
const float_round_style numeric_limits
^
"/opt/aCC.06.15/opt/aCC/include/limits", line 332: error #20: identifier
"float_round_style" is undefined
static const float_round_style RWSTDExportTemplate round_style __RW_INIT(RWS
TD_STATIC_CAST(float_round_style,FLT_ROUNDS));
^
detected during instantiation of class "numeric_limits
line 285
"/opt/aCC.06.15/opt/aCC/include/limits", line 332: error #321: data member
initializer is not allowed
static const float_round_style RWSTDExportTemplate round_style __RW_INIT(RWS
TD_STATIC_CAST(float_round_style,FLT_ROUNDS));
^
detected during instantiation of class "numeric_limits
line 285
In addition, I have provided the following includes while builing the front end compiler using aCC 6.15.
#if defined(__ia64)
v_argv[n++] ="-I/opt/aCC.06.15/opt/aCC/include";
v_argv[n++] ="-I/opt/aCC.06.15/opt/aCC/include/iostream";
v_argv[n++] ="-I/opt/aCC.06.15/opt/aCC/include_std";
v_argv[n++] ="-I/usr";
#endif
Any suggestion would be appreciated.
Regards,
Neel
- Tags:
- ProC
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2008 03:51 PM
тАО08-11-2008 03:51 PM
Re: error #20: identifier "float_round_style" is undefined
>using thirdparty front end to compile
Unless your third party preprocessor matches exactly with what aCC6 is doing, you'll continue to have problems like this and your previous threads:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1223245
>error #77-D: this declaration has no storage class or type specifier
__inline float fabsf(float __x)
Just pass in -D__inline=inline.
>error #20: identifier "_Asm_fabs" is undefined
All _Asm_* functions are builtin.
>/opt/aCC.06.15/opt/aCC/include/limits: error #20: identifier "float_round_style" is undefined
static const float_round_style round_style;
I'm not sure what's wrong here? You should be using the includes from include_std. float_round_style should be defined before use.
#if defined(__ia64)
"-I/opt/aCC.06.15/opt/aCC/include";
"-I/opt/aCC.06.15/opt/aCC/include/iostream";
"-I/opt/aCC.06.15/opt/aCC/include_std";
"-I/usr";
These are incorrect. There shouldn't be any #if. There needs to be a set for -AP and another set of -AA. The above set is a miss mash of the two.
Use -v to see the paths for -AA (the default) and -AP.
Unless your third party preprocessor matches exactly with what aCC6 is doing, you'll continue to have problems like this and your previous threads:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1223245
>error #77-D: this declaration has no storage class or type specifier
__inline float fabsf(float __x)
Just pass in -D__inline=inline.
>error #20: identifier "_Asm_fabs" is undefined
All _Asm_* functions are builtin.
>/opt/aCC.06.15/opt/aCC/include/limits: error #20: identifier "float_round_style" is undefined
static const float_round_style round_style;
I'm not sure what's wrong here? You should be using the includes from include_std. float_round_style should be defined before use.
#if defined(__ia64)
"-I/opt/aCC.06.15/opt/aCC/include";
"-I/opt/aCC.06.15/opt/aCC/include/iostream";
"-I/opt/aCC.06.15/opt/aCC/include_std";
"-I/usr";
These are incorrect. There shouldn't be any #if. There needs to be a set for -AP and another set of -AA. The above set is a miss mash of the two.
Use -v to see the paths for -AA (the default) and -AP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2008 08:23 PM
тАО08-13-2008 08:23 PM
Re: error #20: identifier "float_round_style" is undefined
Thanks for reply.
I will try to defined the above declaration for thirdparty.
Neel
I will try to defined the above declaration for thirdparty.
Neel
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