home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18928 < prev    next >
Encoding:
Text File  |  1992-12-28  |  1.3 KB  |  39 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!netnews!bandy
  3. From: bandy@netnews.jhuapl.edu (Mike Bandy)
  4. Subject: Re: upper/lower case with VMS C
  5. Message-ID: <Bzz54C.GF0@netnews.jhuapl.edu>
  6. Organization: JHU/Applied Physics Laboratory
  7. References: <Bzs20s.FBM@rex.uokhsc.edu>
  8. Date: Mon, 28 Dec 1992 14:48:12 GMT
  9. Lines: 28
  10.  
  11. david@rex.uokhsc.edu (David W. Bourne) writes:
  12.  
  13. >I am trying to compile a 'c' program I obtained from a colleague under
  14. >VAX VMS. With other module I had no real problems but one module
  15. >apparently has variables with the 'same' names, that is only case
  16. >different.
  17.  
  18. >One line reads
  19.  
  20. >  double *Ao, *Ak, .... , *ao
  21.  
  22. >I then get an error message CONFLICTDECL indicating that the ao is
  23. >a redeclaration of the Ao variable.
  24.  ...
  25. >I have been able to compile the module on a UNIX machine without a problem.
  26. >It seems to be the VAX VMC 'c' environment that is causing a problem.
  27.  
  28. Define the variables as 'static' so that the compiler keeps them local to
  29. the current source module.  Then there won't be a conflict with other,
  30. globally defined, variables of similar names.  Are all definitions
  31. of the same type?  Maybe the error message is telling you that you have
  32. float/double conflict that the Unix system resolves in a different manner
  33. than VMS.
  34. -- 
  35.  
  36.     Mike Bandy
  37.     bandy@aplcomm.jhuapl.edu
  38.     Johns Hopkins University / Applied Physics Lab
  39.