Problems inheriting multiple times.

Discussion in 'C++' started by Snyke, Aug 21, 2004.

  1. Snyke

    Snyke Guest

    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???
    Snyke, Aug 21, 2004
    #1
    1. Advertising

  2. 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
    Thomas Matthews, Aug 23, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?bWF2cmlja18xMDE=?=

    SetAuthCookie works some times and fails some times?

    =?Utf-8?B?bWF2cmlja18xMDE=?=, Mar 23, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    511
    =?Utf-8?B?bWF2cmlja18xMDE=?=
    Mar 23, 2006
  2. =?Utf-8?B?bWF2cmlja18xMDE=?=

    Forms Authentication Fails some times and not some times???

    =?Utf-8?B?bWF2cmlja18xMDE=?=, Mar 28, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    488
    =?Utf-8?B?bWF2cmlja18xMDE=?=
    Mar 28, 2006
  3. djskrill
    Replies:
    9
    Views:
    697
    djskrill
    Oct 1, 2003
  4. Snyke
    Replies:
    2
    Views:
    682
    red floyd
    Aug 23, 2004
  5. Jack Steven
    Replies:
    2
    Views:
    430
    Chris Rebert
    Mar 9, 2009
Loading...

Share This Page