0
當我嘗試編譯此:SDL_Thread的存儲大小未知?
#include <SDL/SDL.h>
#include "SDL_thread.h"
int main(void) {
SDL_Thread athread;
return 0;
}
有:
gcc SDL_Thread_test.c -o SDL_Thread_test `sdl2-config --cflags --libs` -lSDL
我得到:
error: storage size of ‘athread’ isn’t known
SDL_Thread athread;
^
也許還有別的東西,我需要#包括?
呃,愚蠢的錯誤。謝謝。 – Duovarious