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

Conference turris::decc

Title:DECC
Notice:General DEC C discussions
Moderator:TLE::D_SMITHNTE
Created:Fri Nov 13 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2212
Total number of notes:11045

2163.0. "DECC$__UTCTZ_LOCALTIME and V6.2?" by MUCTEC::BECKER (Hartmut B., VMS & Languages, Munich) Fri Apr 25 1997 07:52

With VMS version 7.0 (and later) there are several implementations for
localtime. To have backward compatibility with V6.x versions one has to define
the macro _VMS_V6_SOURCE. Unfortunately my partner didn't. Now he tries to link
the under V7.1 compiled objects on a V6.2 system. The linker complains that 2
symbols are undefined: DECC$__UTCTZ_LOCALTIME, DECC$__UTC_TIME. It seems that
only one source calls localtime. Is it enough to re-compile just this source or
are there other backward incompatibilites (i.e. do they have to re-compile all
their sources)?

Thanks,
Hartmut
T.RTitleUserPersonal
Name
DateLines
2163.1TLE::D_SMITHDuane Smith -- DEC C RTLFri Apr 25 1997 08:2310
    The proper way to do this is to compile using 
    
        /DEFINE=__VMS_VER=60200000
    
    By the undefined globals, both time() and localtime() are being called
    from the source.  If I were doing this, I would look at the list of
    modules which the linker (on 6.2) says are making these references and
    recompile at least that set of modules.
    
    Duane