🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Webster Dove Sun, 04 Dec 1988 23:15
bug: multiple constant definitions cause multiply defined symbols
#1551
Author: Webster Dove
Date: Sun, 04 Dec 1988 23:15
19 lines
1177 bytes
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;

Since this header file is included in several liballegro.a modules,
the constants show up multiply defined at load time.  Is this the
proper c++ behavior?  Should the loader recognize identical constant
declarations and not report any message, and report an error if they
are not identical for the same variable?

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

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads