SDL driver 1.29 strange error
Hi everybody,
I use :
Dev C++ : FreeDev pack
sh_gcc : 3.4.2
gcc : 3.4.2
kos : 1.2.0
1 )i have downloaded the precompiled librairies, in my IDE directory i have placed
the content of lib/dreamcast (*.a files) in my lib directory (dclib).
2) i copy the "freetype directory" in my include directory (there was none before)
3) i copy the content of "SDL include directory" in my previous "SDL include directory"
4) i move "zlib.h,zconf.h,zutil.h" to the "zlib include directory" in my IDE
5) i move "png.h pngconf.h" to the "png include directory" in my IDE
6) i do not know where to copy the last file "ft2build.h" so i keep it in the root directory of
my include files.
After doing that, i add the "-lSDL_129" prefix in the linker options
i also add in my source file the header "SDL_dreamcast.h".
Finally i try to compile my project wich compile smoothly using my old
installation (before making point 1 to 6).
At this point "big problemo" begins :
Compiler: Dreamcast
Building Makefile: "C:\Makefile.win"
Executing make...
make.exe -f "C:\Makefile.win" all
sh-elf-gcc.exe testing_sdl_chui/Test_sdl.o -o "test.elf" -L"d:/Dev-Cpp/dclib" -L"d:/Dev-Cpp/dclib"
-lSDL_129 -ml -m4-single-only -nostartfiles -nostdlib -nodefaultlibs -Wl,-Ttext=0x8c010000 startup.o
-lkallisti -lgcc testing_sdl_chui/romdisk.o
testing_sdl_chui/Test_sdl.o(.eh_frame+0x12): In function `My_game':
testing_sdl_chui/Test_sdl.cpp:372: undefined reference to `___gxx_personality_v0'
d:/Dev-Cpp/dclib/libSDL_129.a(SDL_error.o)(.text+0x6d0): In function `SDL_SetError':
src/SDL_error.c:120: undefined reference to `__impure_ptr'
d:/Dev-Cpp/dclib/libSDL_129.a(SDL_error.o)(.text+0x6d4):
src/SDL_error.c:120: undefined reference to `_fprintf'
d:/Dev-Cpp/dclib/libSDL_129.a(SDL_error.o)(.text+0x744):
src/SDL_error.c:296: undefined reference to `__impure_ptr'
d:/Dev-Cpp/dclib/libSDL_129.a(SDL_error.o)(.text+0x748):
src/SDL_error.c:296: undefined reference to `_fprintf'
d:/Dev-Cpp/dclib/libSDL_129.a(SDL_systimer.o)(.text+0x3c):
In function `SDL_GetTicks':
src/timer/dc/SDL_systimer.c:61: undefined reference to `_timer_us_gettime64'
d:/Dev-Cpp/dclib/libSDL_129.a(SDL_sysjoystick.o)(.text+0x358): In function `SDL_SYS_JoystickUpdate':
src/joystick/dc/SDL_sysjoystick.c:219: undefined reference to `_timer_us_gettime64'
d:/Dev-Cpp/dclib/libSDL_129.a(SDL_dcvideo.o)(.text+0x598): In function `sdl_dc_blit_textured':
src/video/dc/SDL_dcvideo.c:618: undefined reference to `_pvr_dma_ready'
d:/Dev-Cpp/dclib/libSDL_129.a(SDL_dcvideo.o)(.text+0x688): In function `DC_FlipHWSurface':
src/video/dc/SDL_dcvideo.c:670: undefined reference to `_pvr_dma_ready'
d:/Dev-Cpp/dclib/libSDL_129.a(SDL_dcvideo.o)(.text+0x68c):src/video/dc/SDL_dcvideo.c:670:
undefined reference to `_pvr_dma_transfer'
d:/Dev-Cpp/dclib/libSDL_129.a(SDL_dcevents.o)(.text+0x224): In function `DC_PumpEvents':
src/video/dc/SDL_dcevents.c:104: undefined reference to `_timer_us_gettime64'
collect2: ld returned 1 exit status
Execution terminated
If i remove the "-lSDL_129" switch in my linker profile to use "-lSDL" like before my project does not compile anymore :
Building Makefile: "C:\Makefile.win"
Executing make...
make.exe -f "C:\Makefile.win" all
sh-elf-gcc.exe testing_sdl_chui/Test_sdl.o -o "test.elf" -L"d:/Dev-Cpp/dclib" -L"d:/Dev-Cpp/dclib"
-lSDL -ml -m4-single-only -nostartfiles -nostdlib -nodefaultlibs -Wl,-Ttext=0x8c010000 startup.o
-lkallisti -lgcc testing_sdl_chui/romdisk.o testing_sdl_chui/Test_sdl.o(.eh_frame+0x12):
In function `My_game':
test_de_sdl/Test_sdl.cpp:372: undefined reference to `___gxx_personality_v0'
collect2: ld returned 1 exit status
Execution terminated
And i start cry .... just one minute the time needed to delete my include and lib directories
and to move on my backup directories.
So what is wrong ? :confused: It will nice helping me :)