[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::c_plus_plus

Title:C++
Notice:Read 1.* and use keywords (e.g. SHOW KEY/FULL KIT_CXX_VAX_VMS)
Moderator:DECCXX::AMARTIN
Created:Fri Nov 06 1987
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3604
Total number of notes:18242

3458.0. "undefs for __utc... with /names=as_is" by CSC32::J_HENSON (Don't get even, get ahead!) Thu Feb 20 1997 20:10

dec c v5.4-010, ovms v7.1, alpha


When the following program is compiled with /names=as, the link will
fail with 4 undefined symbols.  These are __UNIX_GETUID, __UTCTZ_CTIME,
__UTC_CTIME and __UTC_TIME.  If you add /define=_vms_v6_source, it
will compile and link cleanly, but you don't get the benefit of the
v7.0 utc functionality.

Also, using c++ v5.2, compiling just with 
/define=(__DECC_V4_SOURCE,__VMS_V6_SOURCE), the code won't compile
due to a missing ;.

I tried defining the uppercase versions of the missing symbols
to the lowercase versions, and vice-versa, but it didn't help.

My customer considers this a critical issue, as they need to use
/names=as_is, and the utc capabilities of V7.1.

Until a fix can be made, would a suitable workaround be to build a
small shareable image that revectors the uppercase names to their
lowercase counterparts?  If not, can someone suggest one?

Thanks,

Jerry

P.S.  This is also a problem with dec c.  See note 2100 in turris::decc.
=======================================================
#include <time.h>
#include <unixlib.h>
main()
{
	char *c_time;
	const time_t *bintim;
	uid_t uid;
	struct tm *gtime;
	time_t seconds, *t_loc;
	c_time = ctime(bintim);
	uid = getuid();
	gtime = gmtime(bintim);
	seconds = time(t_loc);
}
T.RTitleUserPersonal
Name
DateLines
3458.1DECCXL::OUELLETTEFri Feb 21 1997 17:392
The discussion for this (apparant) header file problem will take place
in turris::decc 2100.