Page 1 of 1

undefined reference to `non-virtual

Posted: 09 May 2008, 18:50
by Shaggy
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.

Re: undefined reference to `non-virtual

Posted: 07 Jun 2008, 10:57
by Bjørn
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.