Using multiple classes results in undefined symbols

Discussion in 'C++' started by Thierry Dussuet, May 11, 2005.

  1. Hello all!

    I am writing a small Qt program (a KDE kicker) right now, which has a main
    class (called infokicker) and a second class (called Worker).
    infokicker has a line
    Worker the_thread;
    in its private section, and all compiles well.
    When trying to load the application, though, I get:

    Undefined symbol "_ZTV6Worker"

    But I have no idea where to look for mistakes. Does anybody have a hint?

    Thierry
    Thierry Dussuet, May 11, 2005
    #1
    1. Advertising

  2. Thierry Dussuet

    Alvin Guest

    Thierry Dussuet wrote:

    > Hello all!
    >
    > I am writing a small Qt program (a KDE kicker) right now, which has a main
    > class (called infokicker) and a second class (called Worker).
    > infokicker has a line
    > Worker the_thread;
    > in its private section, and all compiles well.
    > When trying to load the application, though, I get:
    >
    > Undefined symbol "_ZTV6Worker"
    >
    > But I have no idea where to look for mistakes. Does anybody have a hint?
    >
    > Thierry


    It appears to be a linker error, probably caused by a missing target in the
    Makefile. In any case, it's off-topic in this newsgroup. Try:

    comp.os.linux.development.apps

    --
    Alvin
    Alvin, May 11, 2005
    #2
    1. Advertising

  3. On 2005-05-11, Alvin <reply@in_newsgroup.ca> wrote:
    > Thierry Dussuet wrote:
    >
    >> Hello all!
    >>
    >> I am writing a small Qt program (a KDE kicker) right now, which has a main
    >> class (called infokicker) and a second class (called Worker).
    >> infokicker has a line
    >> Worker the_thread;
    >> in its private section, and all compiles well.
    >> When trying to load the application, though, I get:
    >>
    >> Undefined symbol "_ZTV6Worker"
    >>
    >> But I have no idea where to look for mistakes. Does anybody have a hint?
    >>
    >> Thierry

    >
    > It appears to be a linker error, probably caused by a missing target in the
    > Makefile. In any case, it's off-topic in this newsgroup. Try:


    Thank you, it was exactly that! (And sorry for the off-topic)

    Thierry
    Thierry Dussuet, May 11, 2005
    #3
    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. Stu
    Replies:
    1
    Views:
    1,247
  2. r
    Replies:
    2
    Views:
    685
    Rob Williscroft
    Aug 2, 2003
  3. pervinder
    Replies:
    0
    Views:
    284
    pervinder
    Aug 30, 2004
  4. Christoph Kukulies

    yacc under cygwin - undefined symbols

    Christoph Kukulies, Jun 25, 2006, in forum: C Programming
    Replies:
    2
    Views:
    497
    Keith Thompson
    Jun 25, 2006
  5. Vijay Bajwa
    Replies:
    6
    Views:
    2,007
    Jerry Coffin
    Feb 16, 2007
Loading...

Share This Page