CVS snapshot update (GUI+water+voxels)

The latest CVS-snapshot example archive features:

gui/GUI_termwin.cc

  • Sample scrollable dumb terminal class with keyboard repeat
    I will probably wrap this in a C interface and make it available
    for people to have really easy error output to the screen.

newvox/

  • Voxel style landscape rendering

water/

  • A very cool water effect

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

Sam Lantinga wrote:

gui/GUI_termwin.cc

  • Sample scrollable dumb terminal class with keyboard repeat
    I will probably wrap this in a C interface and make it available
    for people to have really easy error output to the screen.
    Hi. I am trying to compile hello.c but it won’t link. Undefined refs
    to rtti, throw and terminate.

Here is the whole works:$ make hello
cc -o hello hello.o -L. -lGUI -lpthread -L…/…/SDL/lib
-Wl,-rpath,/home/mike/projects/devel/SDL/lib -lSDL -ldl
hello.o: In function main': hello.o(.text+0x161): undefined reference to__throw’
hello.o(.text+0x276): undefined reference to __throw' hello.o(.text+0x2e8): undefined reference to__throw’
hello.o(.text+0x339): undefined reference to __throw' hello.o(.text+0x3a7): undefined reference to__throw’
hello.o(.text+0x421): undefined reference to terminate(void)' ./libGUI.a(GUI_area.o): In functionGUI_Area type_info function’:
GUI_area.o(.text+0x100): undefined reference to __rtti_si' ./libGUI.a(GUI_button.o): In functionGUI_Button type_info function’:
GUI_button.o(.text+0xe0): undefined reference to __rtti_si' ./libGUI.a(GUI_scrollbar.o): In functionGUI_ScrollButtons::GUI_ScrollButtons(int, int, SDL_Surface *, SDL_Rect
&, int, int, SDL_Surface *, GUI_ScrollBar::orientation, GUI_Scrollable
*)’:
GUI_scrollbar.o(.text+0x471): undefined reference to __throw' ./libGUI.a(GUI_scrollbar.o): In functionGUI_ScrollButtons type_info
function’:
GUI_scrollbar.o(.text+0x500): undefined reference to __rtti_si' ./libGUI.a(GUI_scrollbar.o): In functionGUI_ScrollBar type_info
function’:
GUI_scrollbar.o(.text+0x550): undefined reference to __rtti_si' ./libGUI.a(GUI_termwin.o): In functionGUI_TermWin::GUI_TermWin(int,
int, int, int, SDL_Surface , void ()(unsigned char), int)’:
GUI_termwin.o(.text+0xd5): undefined reference to __throw' ./libGUI.a(GUI_termwin.o): In functionGUI_TermWin type_info function’:
GUI_termwin.o(.text+0x6b0): undefined reference to __rtti_si' ./libGUI.a(GUI_termwin.o): In functionGUI_Scrollable type_info
function’:
GUI_termwin.o(.gnu.linkonce.t.__tf14GUI_Scrollable+0x20): undefined
reference to __rtti_si' ./libGUI.a(GUI_widget.o): In functionGUI_Widget type_info function’:
GUI_widget.o(.text+0x4c6): undefined reference to `__rtti_user’
make: *** [hello] Error 1

Sam Lantinga wrote:

gui/GUI_termwin.cc

  • Sample scrollable dumb terminal class with keyboard repeat
    I will probably wrap this in a C interface and make it available
    for people to have really easy error output to the screen.
    Hi. I am trying to compile hello.c but it won’t link. Undefined refs
    to rtti, throw and terminate.

I have this problem occasionally, and it usually turns out to be the C
compiler linking C++ code. Try ‘make spotless’ and then ‘make all’

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

Mike Fletcher wrote:

Sam Lantinga wrote:

gui/GUI_termwin.cc

  • Sample scrollable dumb terminal class with keyboard repeat
    I will probably wrap this in a C interface and make it available
    for people to have really easy error output to the screen.
    Hi. I am trying to compile hello.c but it won’t link. Undefined refs
    to rtti, throw and terminate.

Here is the whole works:$ make hello
cc -o hello hello.o -L. -lGUI -lpthread -L…/…/SDL/lib
-Wl,-rpath,/home/mike/projects/devel/SDL/lib -lSDL -ldl
hello.o: In function main': hello.o(.text+0x161): undefined reference to__throw’
hello.o(.text+0x276): undefined reference to __throw' hello.o(.text+0x2e8): undefined reference to__throw’
hello.o(.text+0x339): undefined reference to __throw' hello.o(.text+0x3a7): undefined reference to__throw’
hello.o(.text+0x421): undefined reference to terminate(void)' ./libGUI.a(GUI_area.o): In functionGUI_Area type_info function’:
GUI_area.o(.text+0x100): undefined reference to __rtti_si' ./libGUI.a(GUI_button.o): In functionGUI_Button type_info function’:
GUI_button.o(.text+0xe0): undefined reference to __rtti_si' ./libGUI.a(GUI_scrollbar.o): In functionGUI_ScrollButtons::GUI_ScrollButtons(int, int, SDL_Surface *, SDL_Rect
&, int, int, SDL_Surface *, GUI_ScrollBar::orientation, GUI_Scrollable
*)’:
GUI_scrollbar.o(.text+0x471): undefined reference to __throw' ./libGUI.a(GUI_scrollbar.o): In functionGUI_ScrollButtons type_info
function’:
GUI_scrollbar.o(.text+0x500): undefined reference to __rtti_si' ./libGUI.a(GUI_scrollbar.o): In functionGUI_ScrollBar type_info
function’:
GUI_scrollbar.o(.text+0x550): undefined reference to __rtti_si' ./libGUI.a(GUI_termwin.o): In functionGUI_TermWin::GUI_TermWin(int,
int, int, int, SDL_Surface , void ()(unsigned char), int)’:
GUI_termwin.o(.text+0xd5): undefined reference to __throw' ./libGUI.a(GUI_termwin.o): In functionGUI_TermWin type_info function’:
GUI_termwin.o(.text+0x6b0): undefined reference to __rtti_si' ./libGUI.a(GUI_termwin.o): In functionGUI_Scrollable type_info
function’:
GUI_termwin.o(.gnu.linkonce.t.__tf14GUI_Scrollable+0x20): undefined
reference to __rtti_si' ./libGUI.a(GUI_widget.o): In functionGUI_Widget type_info function’:
GUI_widget.o(.text+0x4c6): undefined reference to `__rtti_user’
make: *** [hello] Error 1

I have the same problem, and, in general, I have problem compiling the SDL
add-on libraries.–
Stephane Magnenat
stephane.magnenat at urbanet.ch

Hi. I am trying to compile hello.c but it won’t link. Undefined refs
to rtti, throw and terminate.
[errors snipped]
I have the same problem, and, in general, I have problem compiling the SDL
add-on libraries.

Try ‘make all CC=g++’ and see if that works…

If it doesn’t, is there any way for me to log into your system to check it out?

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/

Sam Lantinga wrote:

Hi. I am trying to compile hello.c but it won’t link. Undefined refs
to rtti, throw and terminate.
[errors snipped]
I have the same problem, and, in general, I have problem compiling the SDL
add-on libraries.

Try ‘make all CC=g++’ and see if that works…

If it doesn’t, is there any way for me to log into your system to check it out?

Ok, it works.

I you want an acces to my computer to make some test, it is online about
16h/24 but I can leave it during some days, because I use a cable connection.
Just say me, in private, a username and a password.

BYe

Steph–
Stephane Magnenat
stephane.magnenat at urbanet.ch