"const" globals are being handled as "static const" globals?
Brad M. Garcia
bgarcia@fore.com
Thu May 14 12:40:00 GMT 1998
On Thu, 14 May 1998, Brad M. Garcia wrote:
> On Thu, 14 May 1998, Manfred Hollstein wrote:
>
> > egcs is correct in doing it this way. The C++ standard is different
> > from ANSI-C with regard to const's. If you want your const to get
> > extern linkage, you need to define it as "extern":
>
> In that case, it is still a bug, because egcs does the same thing
> when I compile it as C instead of C++.
I take that back.
(forgot to rename the file as a.c instead of a.cc).
Brad Garcia
___/ __ / __ / ___/ "Being the Linux of digital media
__/ / / / _/ __/ would be a very good life."
_/ ____/ _/ _| ____/ - Jean-Louis Gassee, CEO of Be, Inc.
More information about the Gcc-bugs
mailing list