🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1552

InterViews

#1552
From: Michael Tiemann
Date: Mon, 05 Dec 1988 06:15
25 lines
1165 bytes
   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
Technical Details
Message-ID: <8812050615.AA03839@marktwain.stanford.edu>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bbn!mailrus!tut.cis.ohio-state.edu!MARKTWAIN.STANFORD.EDU!tiemann

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bbn!mailrus!tut.cis.ohio-state.edu!MARKTWAIN.STANFORD.EDU!tiemann
From: tiemann@MARKTWAIN.STANFORD.EDU (Michael Tiemann)
Newsgroups: gnu.g++.bug
Subject: InterViews
Message-ID: <8812050615.AA03839@marktwain.stanford.edu>
Date: 5 Dec 88 06:15:16 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 24