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. Advertisements

  2. Show

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

    Thomas Matthews

    C++ newsgroup welcome message:
    C++ Faq:
    C Faq:
    alt.comp.lang.learn.c-c++ faq:
    Other sites: -- C++ STL Library book
    Thomas Matthews, Aug 23, 2004
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.