Hi Hermann-Josef,
On Tue, 29 Jan 2002 10:27:16 +0100 (CET)
"mathes@ik.fzk.de" <mathes@ik3.fzk.de> wrote
concerning "[ROOT] Unresolved reference and CINT":
> Dear Rooters,
>
> I have a question concerning the right format of the LinkDef.h file.
> My class contains:
> class TEyeEventHeader : public TObject {
> public:
> static const UInt_t kTicksPerSecond = 100000000;
> // ... more stuff
> ClassDef(TEyeEventHeader,(int)EyeEVENTVERSIONv1)
> };
>
Put the definition of
TEyeEventHeader::kTicksPerSecond
(you mean TEyeEventHeader::fgTicksPerSecond don't ya?) in a
implmentation file (aka source file - one that's compiled). See also
[1]. It refers to GCC 3, but it also applies to GCC 2.95.2. You may
have the documentation as an info doc. Try
info gcc Trouble C++ Static
Yours,
Christian Holm Christensen -------------------------------------------
Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91
DK-2200 Copenhagen N Cell: (+45) 28 82 16 23
Denmark Office: (+45) 353 25 305
Email: cholm@nbi.dk Web: www.nbi.dk/~cholm
[1] http://gcc.gnu.org/onlinedocs/gcc-3.0.3/gcc_9.html#SEC148
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:40 MET