Every time I try to run the code below I get the error that is in the title, how do I fix this?
#include <SDL\SDL.h>
int main(int argc, char** argv) {
SDL_Init(SDL_INIT_EVERYTHING);
return 0;
}
The error means that the linker is unable to find the function SDL_Init. This is usually caused by improper paths to the libraries that contain function definition.
In our case :
You can either put all required SDL dlls into your Output directory(by default it will be the bin folder)
Or
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With