[ROOT] Error: multiple definitions

From: cstrato (cstrato@aon.at)
Date: Mon Dec 15 2003 - 00:26:00 MET


Dear Rooters

In the header file XPSApp.h I have defined:
    const char *kXPSName = "This is text";
//or:   static const char *kXPSName = "This is text";

In a couple of source files I "#include XPSApp.h"
Sorrowly, at the end of the compilation I get the error:

ld: multiple definitions of symbol _kXPSName
XDataFrame.o definition of _kXPSName in section (__DATA,__data)
XPSApp.o definition of _kXPSName in section (__DATA,__data)
make: *** [XPSApp] Error 1

Do you know how I can define kXPSName so that I can use
it in multiple source files?

Thank you in advance
Best regards
Christian
_._._._._._._._._._._._._._._._
C.h.i.s.t.i.a.n S.t.r.a.t.o.w.a
V.i.e.n.n.a       A.u.s.t.r.i.a
_._._._._._._._._._._._._._._._



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET