Find the answer to your Linux question:
Results 1 to 6 of 6
Ive never seen this linker error so I dont know how to fix it here it is Code: Undefined first referenced Symbol in file typeinfo for State MapState.o vtable for ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Apr 2003
    Location
    TEXAS
    Posts
    314

    Linker error


    Ive never seen this linker error so I dont know how to fix it here it is

    Code:
    Undefined                     first referenced
     Symbol                           in file
    typeinfo for State           MapState.o
    vtable for State              MapState.o
    ld: fatal: Symbol referencing errors.  No output written to test collect2: ld returned 1 exit status
    make: *** [test] Error 1
    what is typeinfo and what is the vtable.

    thanx for reading

    bignester
    The computer made me do it!! Slackware and SUSE too Gig\'em WHOOOOP!!
    \"God put me on this earth to accomplish a certain amount of tasks, At the rate I\'m going I will never die.\" (I don\'t know)

  2. #2
    Linux User
    Join Date
    Jul 2004
    Location
    Poland
    Posts
    368
    Hello, what exactly and how do you compile? vtable is used to implement virtual methods in C++, and I guess that typeinfo has something to do with RunTime Type Information (RTTI). I need more information.
    "I don't know what I'm running from
    And I don't know where I'm running to
    There's something deep and strange inside of me I see"

  3. #3
    Linux User
    Join Date
    Apr 2003
    Location
    TEXAS
    Posts
    314
    http://students.cs.tamu.edu/anester/420/
    click the above its all of the souce code so far.

    the files of importance are makefile
    MapState.cpp & .h
    State.cpp & .h
    test.cpp
    Searches.cpp

    thanx for the help
    The computer made me do it!! Slackware and SUSE too Gig\'em WHOOOOP!!
    \"God put me on this earth to accomplish a certain amount of tasks, At the rate I\'m going I will never die.\" (I don\'t know)

  4. #4
    Linux User
    Join Date
    Apr 2003
    Location
    TEXAS
    Posts
    314
    never mind im an idiot thanx for the help anyway though
    The computer made me do it!! Slackware and SUSE too Gig\'em WHOOOOP!!
    \"God put me on this earth to accomplish a certain amount of tasks, At the rate I\'m going I will never die.\" (I don\'t know)

  5. #5
    Linux User
    Join Date
    Jul 2004
    Location
    Poland
    Posts
    368
    What was the source of problem, anyway
    "I don't know what I'm running from
    And I don't know where I'm running to
    There's something deep and strange inside of me I see"

  6. #6
    Just Joined!
    Join Date
    Sep 2005
    Posts
    1

    Possible Solution

    I experienced the same problem. I was very glad to find this discussion group on Google. I read through the discussion and couldn't wait to get to the end where the solution was. Unfortunately, the original poster figured out the problem but didn't bother to post the solution.

    I also figured out my problem. It was probably similar to the original posters. My problem was this:

    1) I had a class that I wanted to sub-class. I changed some of the methods on this class to be virtual.
    2) I sub-classed the original class in a separate library.
    3) I recompiled the separate library and I got the error. Here is the problem. I forgot to recompile the library that contains the sub-class with the functions I just made virtual.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •