Date: Fri, 9 Apr 1999 14:17:01 -0400 (EDT) From: Ronald Petty <repett0@sac.uky.edu> To: Billie Sue Fite <bsfite00@sac.uky.edu>, freebsd-questions@FreeBSD.ORG, UK Labrats <LABRATS@LSV.UKY.EDU>, Liquidbob soap <rapett0@sac.uky.edu> Subject: static Message-ID: <Pine.HPP.3.92.990409141156.19696B-100000@sac.uky.edu>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.HPP.3.92.990409141156.19696B-100000>
