[gnu.g++.bug] InterViews

tiemann@MARKTWAIN.STANFORD.EDU (Michael Tiemann) (12/05/88)

   Date: Sun, 4 Dec 88 18:15:45 EST
   From: decvax!savax!rocket!dove@ucbvax.berkeley.edu (Webster Dove)

   In InterViews-2.4 src/include/allegro/space.h there are the following
   lines: 
   /*
    * Protocol definitions.
    */

   const int objectspace_Find = 1;
   const int objectspace_Clone = 2;
   const int objectspace_Destroy = 3;

These can be declared static const and the problems will go away.

   In another similar vain, I had problems with initiatized static
   members in a class header file (multiply defined symbols).  What is
   the solution?

There is no solution until linkers get smarter.  Perhaps use #ifdefs
around the initialization, and only let one source file see the actual
initialization.

Michael