Help required - compiling with SDL renderer (#116)
Posted: Mon 18.02.2008, 16:15
Ok... I tried to compile MAng (in my case PWMAng, but it's the same) with SDL renderer activated.
I implemented the changes from #116, downloaded and unzipped the SDL-1.2.13 package, unzipped the Borland.zip package (I use BCC6 to compile my code so I need a Borland makefile), compiled the SDL.dll and SDL.lib files (took me three ****ing hours!!! because the stupid makefile is for version 1.2.4 and not 1.2.13, so there were files missing, paths to change, compile errors to fix...), added all sdlxxx.h files to the /client subdirectory, added sdl.lib to the bcc lib subdirectory, modified my makefile to add a USE_SDL define, client\main-sdl.c client\maim-sdl.c client\sdl-xxx.c client\client.c client\set_focus.c files and sdl.lib to the link path... and I'm still getting errors...
Error: Unresolved external '_SDL_FillRect' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_UpdateRect' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_CreateRGBSurface' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_SetAlpha' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_FreeSurface' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_WaitEvent' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_reset_visuals' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_SaveBMP_RW' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_GetRGB' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIM-SDL.OBJ
Error: Unresolved external '_SDL_MapRGB' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIM-SDL.OBJ
Error: Unresolved external '_SDL_UpperBlit' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIM-SDL.OBJ
Error: Unresolved external '_SDL_PollEvent' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_Flip' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_Delay' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_SetColors' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_Init' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_Quit' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_SetVideoMode' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_WM_SetCaption' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_EnableKeyRepeat' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_ShowCursor' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_RWFromFile' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_LoadBMP_RW' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Note that I don't get any errors for maim-sdl which also uses SDL functions...
I implemented the changes from #116, downloaded and unzipped the SDL-1.2.13 package, unzipped the Borland.zip package (I use BCC6 to compile my code so I need a Borland makefile), compiled the SDL.dll and SDL.lib files (took me three ****ing hours!!! because the stupid makefile is for version 1.2.4 and not 1.2.13, so there were files missing, paths to change, compile errors to fix...), added all sdlxxx.h files to the /client subdirectory, added sdl.lib to the bcc lib subdirectory, modified my makefile to add a USE_SDL define, client\main-sdl.c client\maim-sdl.c client\sdl-xxx.c client\client.c client\set_focus.c files and sdl.lib to the link path... and I'm still getting errors...
Error: Unresolved external '_SDL_FillRect' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_UpdateRect' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_CreateRGBSurface' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_SetAlpha' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_FreeSurface' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_WaitEvent' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_reset_visuals' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_SaveBMP_RW' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_GetRGB' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIM-SDL.OBJ
Error: Unresolved external '_SDL_MapRGB' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIM-SDL.OBJ
Error: Unresolved external '_SDL_UpperBlit' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIM-SDL.OBJ
Error: Unresolved external '_SDL_PollEvent' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_Flip' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_Delay' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_SetColors' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_Init' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_Quit' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_SetVideoMode' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_WM_SetCaption' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_EnableKeyRepeat' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_ShowCursor' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_RWFromFile' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Error: Unresolved external '_SDL_LoadBMP_RW' referenced from D:\EXTRA\PWMANGBAND\SRC\CLIENT\MAIN-SDL.OBJ
Note that I don't get any errors for maim-sdl which also uses SDL functions...