I'm trying to compile and run the following code:
#include <iostream>
#include <SDL.h>
#include <SDL_net.h>
#include <cstring>
using namespace std;
int main(int argc, char **argv)
{
printf("result of SDL_Init is: %i\n",SDL_Init(SDL_INIT_EVERYTHING));
printf("result of SDLNet_Init is: %i\n",SDLNet_Init());
}
The code compiles fine, but when I run it I get an error:
The application was unable to start correctly (0xc000007b). Click OK to close the application
I've successfully compiled and run SDL code before, but this is my first time trying out SDL_Net.
I'm using Code::Blocks on Windows with MinGW GCC compiler, I'm using the x86_64-w64-mingw32 libraries for SDL, and these are my linker settings (some of which are not immediately necessary, I know):
-lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -lpthread -lSDL2_net
Does anyone know what's going on here?
//ETA:
How can I resolve this issue without switching all my stuff over to 32-bit?
Thanks,