home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!netnews!bandy
- From: bandy@netnews.jhuapl.edu (Mike Bandy)
- Subject: Re: upper/lower case with VMS C
- Message-ID: <Bzz54C.GF0@netnews.jhuapl.edu>
- Organization: JHU/Applied Physics Laboratory
- References: <Bzs20s.FBM@rex.uokhsc.edu>
- Date: Mon, 28 Dec 1992 14:48:12 GMT
- Lines: 28
-
- david@rex.uokhsc.edu (David W. Bourne) writes:
-
- >I am trying to compile a 'c' program I obtained from a colleague under
- >VAX VMS. With other module I had no real problems but one module
- >apparently has variables with the 'same' names, that is only case
- >different.
-
- >One line reads
-
- > double *Ao, *Ak, .... , *ao
-
- >I then get an error message CONFLICTDECL indicating that the ao is
- >a redeclaration of the Ao variable.
- ...
- >I have been able to compile the module on a UNIX machine without a problem.
- >It seems to be the VAX VMC 'c' environment that is causing a problem.
-
- Define the variables as 'static' so that the compiler keeps them local to
- the current source module. Then there won't be a conflict with other,
- globally defined, variables of similar names. Are all definitions
- of the same type? Maybe the error message is telling you that you have
- float/double conflict that the Unix system resolves in a different manner
- than VMS.
- --
-
- Mike Bandy
- bandy@aplcomm.jhuapl.edu
- Johns Hopkins University / Applied Physics Lab
-