Nick2017 wrote:I have the file libSDL2.dll.a in C:\MinGW32\lib which is in the linker's library directory.
And the linker can't find it there? That's odd.
(I see the gcc command line contains both -L"C:/MinGW32/lib" and -l"SDL2.dll".)
Did you extract the 32-bit or the 64-bit version of SDL2? It should be the 32-bit.
Although, if it was the 64-bit, then there would be some more error messages about that.
(skipping incompatible C:/MinGW32/lib/###.a when searching for -l###)
Code: Select all
seg008.o: bad reloc address 0x0 in section `.data'
I found this: https://sourceware.org/bugzilla/show_bug.cgi?id=14688
This might be a bug in the linker? Maybe yours is different from mine?
What version of Dev-C++ do you have? (mine is: 5.11)
And what is the version of ld.exe? (Type ld --version to see that.) (mine is: GNU ld (GNU Binutils) 18.104.22.16840703)
Nick2017 wrote:But I can't find any of these functions:
SDL_ConvertSurface, SDL_SetSurfacePalette, SDL_SetSurfaceBlendMode.
Where are they located? because I can't find them anywhere.
What do you mean here?
* These functions are "defined" in libSDL2.dll.a. By "define" I mean they are defined as DLL imports from SDL2.dll.
* Their prototypes are in SDL_surface.h.
* And they are used in seg008.c, among others.