- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: CXX thinks CRTL version is older than CC does
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
тАО09-08-2005 12:55 PM
тАО09-08-2005 12:55 PM
70312000
and CXX thinks it is
70310022
I'm trying to use the snprintf() and vsnprintf() functions and stdio.h makes them visible only if __CRTL_VER is >=70312000.
So, they are visible to CC, but not CXX, on the same machine with the same C run-time library. Has anybody encountered this and do you know how to fix it? I tried the VMS731_ACRTL_V0400 patch, but that made no difference. Is there a compiler patch? I haven't run into those. I have:
CC V6.5-001
CXX V6.5-004
My uses of the function are, of course, in some C++ modules.
--Travis Craig
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2005 06:41 PM
тАО09-08-2005 06:41 PM
Re: CXX thinks CRTL version is older than CC does
Compaq C++ V6.5-039 for OpenVMS Alpha V8.2
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2005 08:40 PM
тАО09-08-2005 08:40 PM
Re: CXX thinks CRTL version is older than CC does
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2005 09:50 PM
тАО09-08-2005 09:50 PM
Re: CXX thinks CRTL version is older than CC does
2 logicals to different files ?
WIm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2005 08:31 AM
тАО09-09-2005 08:31 AM
Re: CXX thinks CRTL version is older than CC does
It looks like CC was installed (moments) after CXX. Does order matter?
When you say "CRTL patches," Ian, do you mean the ones like VMS731_ACRTL_V0400 (which I installed), or some other ones for the compilers themselves? I haven't been able to find any patches for compilers mentioned online. Maybe it's time to go down and look at the layered product disks.
I see no suspicious looking logical names, none that look related to compiler or library versions.
--Travis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2005 10:06 PM
тАО09-11-2005 10:06 PM
Re: CXX thinks CRTL version is older than CC does
I don't know how the compilers determines the CRTL version.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2005 10:51 PM
тАО09-11-2005 10:51 PM
Re: CXX thinks CRTL version is older than CC does
I got the same phenomenon on our development cluster (VMS 7.3-1, CC V6.5-001, CXX V6.5-004).
However, I've included a small program that not only uses __CRTL_VER but also DECC$$GL___CRTL_VER. Please compile it with both CC and CXX, and mark the difference.
Here the version compiled with CC, prints the same value for __CRTL_VER and DECC$$GL___CRTL_VER. If compiled with CXX, the values differ. It seems that the global longword DECC$$GL___CRTL_VER is defined in SYS$SHARE:DECC$CRTL.EXE, and for CC has the same value as __CRTL_VER. Unfortunately this is not the case for CXX.
Regards,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2005 11:03 PM
тАО09-11-2005 11:03 PM
SolutionBack again. Please have a look at the file SYS$SHARE:DECC$CRTL.README. It says somewhere
The default value assigned to the predefined macro __CRTL_VER differs between Compaq C and Compaq C++. Compaq C will default __CRTL_VER to the value found within the DECC$CRTL.EXE name mapping table. Compaq C++ does not examine this value with the shareable image. Compaq C++ defaults __CRTL_VER to the same value as __VMS_VER.
So, I think you better compile your C++ sources with /DEFINE=__CRTL_VER=70312000 (the value found in DECC$CRTL.EXE).
Regards,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2005 08:39 AM
тАО09-12-2005 08:39 AM
Re: CXX thinks CRTL version is older than CC does
--Travis