Posted by ???jojo??? on July 26, 2001 at 23:57:24:
In Reply to: Project 3 on Web posted by Some dude on July 26, 2001 at 23:20:27:
I'm having a similar problem so I wouldn't be the person to answer, but wanted to add on to your comment...
I compiled all the 16 files on g++ and got this result...
Any help would be great!
/tmp/ccyv3JoG.o: In function `foo::count(void)':
/tmp/ccyv3JoG.o(.foo::gnu.linkonce.t.count(void)+0x5): undefined reference to `f
oo::existence_counter'
/tmp/ccyv3JoG.o: In function `foostring::foostring(void)':
/tmp/ccyv3JoG.o(.foostring::gnu.linkonce.t.(void)+0xf): undefined reference to `
foo::foo(void)'
/tmp/ccyv3JoG.o(.foostring::gnu.linkonce.t.(void)+0x5a): undefined reference to
`foo::~foo(void)'
/tmp/ccyv3JoG.o: In function `foostring::foostring(foostring const &)':
/tmp/ccyv3JoG.o(.foostring::gnu.linkonce.t.(foostring const &)+0x13): undefined
reference to `foo::foo(void)'
/tmp/ccyv3JoG.o(.foostring::gnu.linkonce.t.(foostring const &)+0x67): undefined
reference to `foo::~foo(void)'
/tmp/ccyv3JoG.o: In function `foostring::~foostring(void)':
/tmp/ccyv3JoG.o(.gnu.linkonce.t._._9foostring+0x25): undefined reference to `foo
::~foo(void)'
/tmp/ccyv3JoG.o: In function `fooint::~fooint(void)':
/tmp/ccyv3JoG.o(.gnu.linkonce.t._._6fooint+0x14): undefined reference to `foo::~
foo(void)'
/tmp/ccyv3JoG.o: In function `fooint::fooint(int)':
/tmp/ccyv3JoG.o(.fooint::gnu.linkonce.t.(int)+0x13): undefined reference to `foo
::foo(void)'
/tmp/ccyv3JoG.o(.fooint::gnu.linkonce.t.(int)+0x37): undefined reference to `foo
::~foo(void)'
/tmp/ccyv3JoG.o: In function `fooint::fooint(fooint const &)':
/tmp/ccyv3JoG.o(.fooint::gnu.linkonce.t.(fooint const &)+0x13): undefined refere
nce to `foo::foo(void)'
/tmp/ccyv3JoG.o(.fooint::gnu.linkonce.t.(fooint const &)+0x37): undefined refere
nce to `foo::~foo(void)'
collect2: ld returned 1 exit status