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: 22 Apr 2008, 13:56
Location: Liverpool, England

undefined reference to `non-virtual

Post by Shaggy » 09 May 2008, 19:50

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: 09 Dec 2004, 19:50
Location: North Rhine-Westphalia, Germany
Contact:

Re: undefined reference to `non-virtual

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

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