home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 19679 < prev    next >
Encoding:
Text File  |  1992-12-22  |  2.6 KB  |  83 lines

  1. 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
  2. From: burkhardt@NEBULA.SSD.LMSC.LOCKHEED.COM (Spike Burkhardt)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: PROBLEM WITH VAX C
  5. Message-ID: <1992Dec21.175150.19050@iscnvx.lmsc.lockheed.com>
  6. Date: 21 Dec 92 17:51:50 GMT
  7. References: <1992Dec11.233154.28523@nntpd2.cxo.dec.com> <Bz5zIo.6FE@dale.cts.com>,<Bz8FsF.8D9@dscomsa.desy.de>
  8. Sender: news@iscnvx.lmsc.lockheed.com (News)
  9. Reply-To: burkhardt@NEBULA.SSD.LMSC.LOCKHEED.COM
  10. Organization: LMSC, Sunnyvale, California
  11. Lines: 70
  12.  
  13. In article <Bz8FsF.8D9@dscomsa.desy.de>, hallam@zeus02.desy.de (Phill Hallam-Baker) writes:
  14. >In article <Bz5zIo.6FE@dale.cts.com>, glippert@dale.cts.com (George Lippert)
  15. >writes:
  16. >
  17. >|>Paul S. Winalski (winalski@adserv.enet.dec.com) wrote:
  18. >|>> Programmierer@BEIZ.mediatex.ch (055485666: MEDIAtex AG) writes:
  19. >|>> |>On VAX-C I receive a message that there is a comma missing between the
  20. >|>> |>two constants.
  21. >|>> |>
  22. >|>> |>how can I force the merging of the constants in VAX-C?
  23. >|>> |>
  24. >|>> |>in Borland C following two lines are equal after compiling:
  25. >|>> |>    printf("one " "two ");
  26. >|>> |>    printf("one two ");
  27. >|>> You can't.  Sorry.
  28. >|>
  29. >|>Any Standard C compiler will do this.  The problem is that VAX C isn't ANSI.
  30. >|>
  31. >|>Shame on DEC for this. Two days from today (ie. 14 Dec 92) will mark the
  32. >|>third
  33. >|>anniversary of the ANSI approval of the Standard.  How much longer will DEC
  34. >|>take!?
  35. >|>
  36. >|>You could buy a third party Standard C compiler for your VMS machine.  Here's
  37. >|>a reference to the only one I know about:
  38. >|>
  39. >|>* TauMetric, ANSI C for VMS, La Mesa, CA, Sue Lindsey (Sales) 619.697.7674
  40. >
  41. >DEC C for alpha claims to be standard ANSI. It is also to be avaliable for VAX
  42. >at some point by the looks...
  43. >
  44. >In the meantime the hack :-
  45. >
  46. >printf ("%s%S", "one", "two");
  47. >
  48. >works provided "one" and two are not intended to contain "%" stuff.
  49. >
  50. >Three years for implementation of ANSI standards ain't that bad. When do you
  51. >think the FORTRAN 90 compilers will be out? 
  52. >
  53. >ANSI C is a plot to make everyone buy another copy of K&R.
  54. >
  55. >--
  56. >
  57. >Phill Hallam-Baker
  58.  
  59. I may be way off base but in my version of VAX C(3.2) the following program
  60. does work:
  61.  
  62. #include <stdio.h>
  63.  
  64. main()
  65. {
  66.   printf("one two \n");
  67.  
  68. }
  69.  
  70. I'm linking this program with the following commands:
  71.  
  72. $ link main, c_options/opt
  73. $
  74.  
  75. where c_options is a one line options file:
  76.  
  77. sys$share:vaxcrtl.exe/share
  78.  
  79. Spike Burkhardt
  80. Systems Management VMS/Unix programming
  81. Internet address - spike@lmsc.lockheed.com
  82. 408-742-1246(w)
  83.