From owner-freebsd-questions Fri Apr 9 15: 6:39 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sac.uky.edu (sac.uky.edu [128.163.1.163]) by hub.freebsd.org (Postfix) with ESMTP id 6CA9A15F11 for ; Fri, 9 Apr 1999 14:43:40 -0700 (PDT) (envelope-from repett0@sac.uky.edu) Received: from localhost (repett0@localhost) by sac.uky.edu (8.9.1/891-uk) with SMTP id OAA25192; Fri, 9 Apr 1999 14:17:02 -0400 (EDT) Date: Fri, 9 Apr 1999 14:17:01 -0400 (EDT) From: Ronald Petty Reply-To: Ronald Petty To: Billie Sue Fite , freebsd-questions@FreeBSD.ORG, UK Labrats , Liquidbob soap Subject: static Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG does anyone now how to use static on objects #include "some_object.h" class one{ private: some_object 1; }; This compiles now if I do this #include "some_object.h" class one{ private: static some_object 1; }; I get errors like this eton.cslab.uky.edu 126: make g++ -c DATA.cc g++ -o COOL main.o REG_U.o MAN_U.o S_U.o V_U.o Property.o LL.o HT.o properties.o parse.o DATA.o DATA.o: In function `DATA::load(void)': DATA.o(.text+0x23c): undefined reference to `DATA::p' DATA.o(.text+0x240): undefined reference to `DATA::p' DATA.o(.text+0x254): undefined reference to `DATA::p' DATA.o(.text+0x258): undefined reference to `DATA::p' DATA.o(.text+0x280): undefined reference to `DATA::p' DATA.o(.text+0x284): more undefined references to `DATA::p' follow make: *** [COOL] Error 1 eton.cslab.uky.edu 127: any ideas ======================================================================== Ron Petty 252-7173, repett0@sac.uky.edu, Aprt 108 217 Virginia Avenue ======================================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message