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

Conference hydra::axp-developer

Title:Alpha Developer Support
Notice:[email protected], 800-332-4786
Moderator:HYDRA::SYSTEM
Created:Mon Jun 06 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3722
Total number of notes:11359

3482.0. "Base-two Investment Systems" by HYDRA::DORHAMER () Mon Apr 14 1997 17:10

    Company Name :  Base-two Investment Systems
    Contact Name :  Nish Krikorian
    Phone        :  617-395-8550
    Fax          :  
    Email        :  [email protected]
    Date/Time in :  14-APR-1997 16:08:42
    Entered by   :  Karen Dorhamer
    SPE center   :  MRO

    Category     :  VMS
    OS Version   :  
    System H/W   :  


    Brief Description of Problem:
    -----------------------------

Nish is working on porting an application from UNIX to VMS.  He currently
has access to a VAX system and plans to visit the porting center to port
to Alpha.  His VAX system has VAX C v3.2 and he is getting a compile time
error that fcntl.h cannot be found.  He would like to know if this include
file exists on VMS.
T.RTitleUserPersonal
Name
DateLines
3482.1checkingHYDRA::DORHAMERMon Apr 14 1997 17:126
    I told Nish that I will check for him and give him a call back.  I
    suggested that using DEC C rather than VAX C would be preferable since
    he plans to port to Alpha.  He is running on a university system and
    does not currently have access to DEC C.
    
    Karen
3482.2file.h (on VAX C) is referenced by fcntl.h (on DEC C)...AMCUCS::SWIERKOWSKIQuot homines tot sententiaeMon Apr 14 1997 17:3317
Greetings!

  If he is using an OpenVMS VAX Vx.x system with *just* VAX C V3.2 installed,
I think the analog to fcntl.h is file.h - I extracted fcntl out of the DEC C
RTL library (i.e. DECC$RTLDEF.TLB) on an OpenVMS VAX with both VAX C and DEC C
installed and it just includes file.h).  However you are correct that if he is 
really porting to OpenVMS Alpha, then he will be using DEC C V5.x (there is no 
"VAX C" on OpenVMS Alpha), cheers...



						Tony Swierkowski
						Digital Equipment Corporation
						Software Partner Engineering
						Palo Alto, California
						(415) 617-3601
						"[email protected]"
3482.3has DEC C alsoHYDRA::DORHAMERMon Apr 14 1997 17:535
    Nish called back and said that they do have a DEC C compiler, so he is
    interested in knowing if the include file exists for either DEC C or
    VAX C.
    
    Karen
3482.4DECC gives you fcntl.h on VAX and AlphaHYDRA::NEWMANChuck Newman, 508/467-5499 (DTN 297), MRO1-3/F26Mon Apr 14 1997 17:537
It includes file.h, which in turn has no includes.

Feel free to copy both of these from my VAX:

cheetr::sys$common:[decc$lib.include]fcntl.h,file.h

							-- Chuck Newman
3482.5gave him the pointer to fcntl.hHYDRA::DORHAMERMon Apr 14 1997 17:584
    I called Nish and told him where to look on his system to find fcntl.h.
    Thanks to Chuck Newman for finding this!
    
    Karen
3482.6Further, file.h on VAX and Alpha are basically the same.HYDRA::NEWMANChuck Newman, 508/467-5499 (DTN 297), MRO1-3/F26Mon Apr 14 1997 18:0326
Tony, you're right -- and the DECC version of file.h is very similar to the VAXC
version:

Aside from comments, the only difference is that the DECC version has a C++
wrapper:

#ifdef __cplusplus
    extern "C" {
#endif

		...mumble-mumble-mumble...

#ifdef __cplusplus
    }
#endif


F.W.I.W., on VAX systems the reference versions of the DECC include files are in
SYS$COMMON:[DECC$LIB.INCLUDE]

On Alpa systems they are in SYS$COMMON:[DECC$LIB.REFERENCE.DECC$RTLDEF] and
SYS$COMMON:[DECC$LIB.REFERENCE.SYS$STARLET_C].  The SYS$LIB_C.TLB file doesn't
get searched by default by the compiler, and a reference directory of its
include files isn't created by the DECC installation process.

								-- Chuck Newman