No luck with removing the dll. And I'm not really sure how to use Dependency Walker. I opened the dll with it but what do I do then?
Also, is linking to the library all I need to do? Or do I also need a header file. b/c I've been including the SDL_gfxPrimitives.h header in my project which has the line:
SDL_GFXPRIMITIVES_SCOPE int pixelRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
In it, which is the function I'm trying to use, but it's not really a whole function. In the .cpp file the whole function is there but there's no way to link to it. It should be part of the library though right?
I turned on full compiler logging. Here's the error:
\SDL\lib\libSDL_gfx.dll.a
obj\Debug\main.o: In function `SDL_main':
C:/SDLtest/main.cpp:38: undefined reference to `pixelRGBA'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 4 seconds)
1 errors, 234 warnings
(Cropped out the warnings b/c it exceeded max post length)
-------------- Build: Debug in Space_Shooter ---------------
mingw32-g++.exe -Wall -g -IC:\GameDev\SDL\include -I..\..\..\SDL\include\SDL -c C:\GameDev\C++_Source_Files\Misc\Space_Shooter\main.cpp -o obj\Debug\main.o
C:\GameDev\C++_Source_Files\Misc\Space_Shooter\main.cpp: In function 'int SDL_main(int, char**)':
C:\GameDev\C++_Source_Files\Misc\Space_Shooter\main.cpp:37: error: 'pixelRGBA' was not declared in this scope
C:\GameDev\C++_Source_Files\Misc\Space_Shooter\main.cpp:13: warning: unused variable 'grey'
Process terminated with status 1 (0 minutes, 2 seconds)
1 errors, 234 warnings