undefined reference to `non-virtual

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
Shaggy
Novice
Novice
Posts: 132
Joined: Tue Apr 22, 2008 1:56 pm
Location: Liverpool, England

undefined reference to `non-virtual

Post by Shaggy » Fri May 09, 2008 7:50 pm

I have just tried to install tmw 0.0.24.1, but get the following while trying to link:

tmw-buddywindow.o:(.rodata._ZTV11BuddyWindow[vtable for BuddyWindow]+0x1d4): undefined reference to `non-virtual thunk to Window::mouseExited(gcn::MouseEvent&)`

followed by a whole load of similar linking problems.

I am using gcc 4.1.2 on Fedora 7

I have had to change all #includes referencing the SDL library to <SDL/*>

I use guichan 0.7.1 as per other threads.
Enjoyed The Mana World? Then check out Aethyra (http://www.aethyra.com).
User avatar
Bjørn
TMW Adviser
TMW Adviser
Posts: 1430
Joined: Thu Dec 09, 2004 7:50 pm
Location: North Rhine-Westphalia, Germany
Contact:

Re: undefined reference to `non-virtual

Post by Bjørn » Sat Jun 07, 2008 11:57 am

You really shouldn't need to adapt the SDL includes. The configure script uses sdl-config to add the right SDL include path. You can check this by doing "sdl-config --cflags" and what it returns should include "-I/usr/include/SDL".

I have no idea what is causing the non-virtual thunk error, but it generally means you are mixing up compiler versions. So making sure Guichan and TMW are compiled using the same compiler might help.
Post Reply