By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,192 Members | 816 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,192 IT Pros & Developers. It's quick & easy.

Problems inheriting multiple times.

P: n/a
Well the title says it all:
I'm trying to inherit a Class (a Singleton class) twice.
The only problem is that I get a linker problem: it says it can't find
the external depency for the static pointer to the existing instance.
This only occurs when I try to build my second or third class, the
first inherited class works fine.
Anybody got an idea???

Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Snyke wrote:
Well the title says it all:
I'm trying to inherit a Class (a Singleton class) twice.
The only problem is that I get a linker problem: it says it can't find
the external depency for the static pointer to the existing instance.
This only occurs when I try to build my second or third class, the
first inherited class works fine.
Anybody got an idea???


Show
Some
Code.

Your problem is on line 42 of Unit1.cpp. I believe
you want to remove the ";".
--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book

Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.