Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site osu-eddie.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!dual!qantel!ihnp4!cbosgd!apr!osu-eddie!pritch From: pritch@osu-eddie.UUCP (Norman Pritchett) Newsgroups: net.lang.c,net.lang.f77 Subject: Re: VAX VMS C / UNIX C Compatibility -- Need Info Message-ID: <528@osu-eddie.UUCP> Date: Thu, 8-Aug-85 17:31:45 EDT Article-I.D.: osu-eddi.528 Posted: Thu Aug 8 17:31:45 1985 Date-Received: Tue, 13-Aug-85 00:21:59 EDT References: <488@rdin.UUCP> Organization: Ohio State Univ., CIS Dept., Cols, Oh. Lines: 31 Xref: linus net.lang.c:5469 net.lang.f77:303 > Is the VAX VMS C-compiler compatible with UNIX? That is, can I take > C files that compiled under UNIX and compile them under VMS with no > changes other than the shell commands inside of system() calls? A guy > in my office says that to hope for this is naive at best, but I thought > that this ability was supposed to be a feature of C. In my opinion, DEC made a half-decent effort to make Vax-11 C compaitible with Unix C. Generally, all but the things which just cannot be done in VMS or wouldn't make sense in VMS were preserved. Areas you will have problems with are things that manipulate terminal characteristics, file i/o (sometimes), things that depend heavily on shell features (wildcard expansion, i/o redirection). > Another thing I'm looking for under VMS is the ability to load both > C and FORTRAN object files into one executable. Does anyone know if > this works? > That's part of VMS. The VMS concept is that all routines should be callable from any language. The questions you've asked can be best answered by reading "Programming in Vax-11C" which is put out by DEC. -- ----------------------------------- Norm Pritchett UUCP: cbosgd!osu-eddie!pritch CSNET: pritch@ohio-state Bellnet: (614) 422-2810