HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- aCC difference in 1.27 and 3.30
Operating System - HP-UX
1827303
Members
3248
Online
109961
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
Forums
Discussions
Discussions
Discussions
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
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-27-2003 05:39 AM
10-27-2003 05:39 AM
aCC difference in 1.27 and 3.30
HI,
I have an application(having modules in c and C++) which i have compiled and linked with aCC1.27. Now in the process of upgradation I need to compile the application with aCC 3.30 . Can anybody tel me what all is the difference between these two compiler and what all the points i have to take care during compilation.
I have an application(having modules in c and C++) which i have compiled and linked with aCC1.27. Now in the process of upgradation I need to compile the application with aCC 3.30 . Can anybody tel me what all is the difference between these two compiler and what all the points i have to take care during compilation.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 06:15 AM
10-27-2003 06:15 AM
Re: aCC difference in 1.27 and 3.30
First of all, aCC 3.30 is no longer current but in any case look in the file /opt/aCC/newconfig/RelNotes/ACXX.release.notes for changes. It is cumulative so that you will also see changes for intervening releases.
The good news is that well-written C or C++ should port with essentially no changes.
The good news is that well-written C or C++ should port with essentially no changes.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 06:19 AM
10-27-2003 06:19 AM
Re: aCC difference in 1.27 and 3.30
Actually i have a lmost ported the application but my application is giving following error at compile time to call of min() function.
Error 902: "fnd_str_err.cc", line 324 # Template deduction failed to find a match for the call to 'min' with signature 'void (long,int)'.
msgbuf_len = min( w_end - nxt_strt,MSGBUF ) ;
I dont know why its throwing this error.
Error 902: "fnd_str_err.cc", line 324 # Template deduction failed to find a match for the call to 'min' with signature 'void (long,int)'.
msgbuf_len = min( w_end - nxt_strt,MSGBUF ) ;
I dont know why its throwing this error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 08:31 PM
10-27-2003 08:31 PM
Re: aCC difference in 1.27 and 3.30
Hi
It is complaining, while undec C++ 'min' is defined as template function, not as preprocessor macro:
template
inline const T& min( const T &a, const T&b )
{
return b < a ? b : a;
}
when you call it with arguments of two differrnt types (int and long), the compiler doesn't know which version you intended.
You cen either:
1.ensure both arguments have the same type (by casting one of them for example)
2.generate your own 'min' function with explicit argument types of your desire.
solution 1. is more obvious, while solution 2. could cover you all the cases, when 'min' is called with this arguments, and therefore you do not have to add casting to every place.
Good luck
Adam
It is complaining, while undec C++ 'min' is defined as template function, not as preprocessor macro:
template
inline const T& min( const T &a, const T&b )
{
return b < a ? b : a;
}
when you call it with arguments of two differrnt types (int and long), the compiler doesn't know which version you intended.
You cen either:
1.ensure both arguments have the same type (by casting one of them for example)
2.generate your own 'min' function with explicit argument types of your desire.
solution 1. is more obvious, while solution 2. could cover you all the cases, when 'min' is called with this arguments, and therefore you do not have to add casting to every place.
Good luck
Adam
I do everything perfectly, except from my mistakes
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.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP