This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/31226] static const volatile variables don't get linked correctly



------- Comment #2 from bangerth at dealii dot org  2007-03-16 18:18 -------
(In reply to comment #1)
> You forgot to declare it, you only defined it.

In fact the other way around: you declared (and initialized) the variable
but you forgot to give a definition (which asks the compiler to actually
allocate space for it).

W.


-- 

bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bangerth at dealii dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31226


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]