From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17903 invoked by alias); 28 Feb 2004 19:13:36 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 17896 invoked from network); 28 Feb 2004 19:13:35 -0000 Received: from unknown (HELO smtp-relay-8.adobe.com) (192.150.22.8) by sources.redhat.com with SMTP; 28 Feb 2004 19:13:35 -0000 Received: from inner-relay-1.corp.adobe.com (inner-relay-1 [153.32.1.51]) by smtp-relay-8.adobe.com (8.12.10/8.12.10) with ESMTP id i1SJD76P000160; Sat, 28 Feb 2004 11:13:12 -0800 (PST) Received: from iplan-mn (iplan-mn.corp.adobe.com [130.248.25.5]) by inner-relay-1.corp.adobe.com (8.12.9/8.12.9) with ESMTP id i1SJD73k024847; Sat, 28 Feb 2004 11:13:07 -0800 (PST) Received: from mn-eljayet.adobe.com ([130.248.176.9]) by iplan-mn.corp.adobe.com (iPlanet Messaging Server 5.2 Patch 1 (built Aug 19 2002)) with ESMTP id <0HTT0070X6PS8X@iplan-mn.corp.adobe.com>; Sat, 28 Feb 2004 13:13:06 -0600 (CST) Date: Sat, 28 Feb 2004 21:23:00 -0000 From: Eljay Love-Jensen Subject: Re: Static constant class members In-reply-to: <200402282117.03580.vova-gs@yandex.ru> X-Sender: eljay@iplan-mn.corp.adobe.com To: Vova , gcc-help@gcc.gnu.org Message-id: <6.0.3.0.2.20040228130852.01e8d8b0@iplan-mn.corp.adobe.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <200402282117.03580.vova-gs@yandex.ru> X-SW-Source: 2004-02/txt/msg00323.txt.bz2 Hi Vova, You cannot initialize static data members in-class. (You can in Java, not in C++.) You need to do this: --- TxtVideo.h --- class TxtVideo { protected: static unsigned int* const VBASE; --- TxtVideo.cpp --- unsigned int* const TxtVideo::VBASE = (unsigned int*) 0x0c00b8000L; HTH, --Eljahy