home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!olivea!spool.mu.edu!umn.edu!csus.edu!netcom.com!netcomsv!butch!iscnvx!news
- From: burkhardt@NEBULA.SSD.LMSC.LOCKHEED.COM (Spike Burkhardt)
- Newsgroups: comp.os.vms
- Subject: Re: PROBLEM WITH VAX C
- Message-ID: <1992Dec21.175150.19050@iscnvx.lmsc.lockheed.com>
- Date: 21 Dec 92 17:51:50 GMT
- References: <1992Dec11.233154.28523@nntpd2.cxo.dec.com> <Bz5zIo.6FE@dale.cts.com>,<Bz8FsF.8D9@dscomsa.desy.de>
- Sender: news@iscnvx.lmsc.lockheed.com (News)
- Reply-To: burkhardt@NEBULA.SSD.LMSC.LOCKHEED.COM
- Organization: LMSC, Sunnyvale, California
- Lines: 70
-
- In article <Bz8FsF.8D9@dscomsa.desy.de>, hallam@zeus02.desy.de (Phill Hallam-Baker) writes:
- >In article <Bz5zIo.6FE@dale.cts.com>, glippert@dale.cts.com (George Lippert)
- >writes:
- >
- >|>Paul S. Winalski (winalski@adserv.enet.dec.com) wrote:
- >|>> Programmierer@BEIZ.mediatex.ch (055485666: MEDIAtex AG) writes:
- >|>> |>On VAX-C I receive a message that there is a comma missing between the
- >|>> |>two constants.
- >|>> |>
- >|>> |>how can I force the merging of the constants in VAX-C?
- >|>> |>
- >|>> |>in Borland C following two lines are equal after compiling:
- >|>> |> printf("one " "two ");
- >|>> |> printf("one two ");
- >|>> You can't. Sorry.
- >|>
- >|>Any Standard C compiler will do this. The problem is that VAX C isn't ANSI.
- >|>
- >|>Shame on DEC for this. Two days from today (ie. 14 Dec 92) will mark the
- >|>third
- >|>anniversary of the ANSI approval of the Standard. How much longer will DEC
- >|>take!?
- >|>
- >|>You could buy a third party Standard C compiler for your VMS machine. Here's
- >|>a reference to the only one I know about:
- >|>
- >|>* TauMetric, ANSI C for VMS, La Mesa, CA, Sue Lindsey (Sales) 619.697.7674
- >
- >DEC C for alpha claims to be standard ANSI. It is also to be avaliable for VAX
- >at some point by the looks...
- >
- >In the meantime the hack :-
- >
- >printf ("%s%S", "one", "two");
- >
- >works provided "one" and two are not intended to contain "%" stuff.
- >
- >Three years for implementation of ANSI standards ain't that bad. When do you
- >think the FORTRAN 90 compilers will be out?
- >
- >ANSI C is a plot to make everyone buy another copy of K&R.
- >
- >--
- >
- >Phill Hallam-Baker
-
- I may be way off base but in my version of VAX C(3.2) the following program
- does work:
-
- #include <stdio.h>
-
- main()
- {
- printf("one two \n");
-
- }
-
- I'm linking this program with the following commands:
-
- $ link main, c_options/opt
- $
-
- where c_options is a one line options file:
-
- sys$share:vaxcrtl.exe/share
-
- Spike Burkhardt
- Systems Management VMS/Unix programming
- Internet address - spike@lmsc.lockheed.com
- 408-742-1246(w)
-