【发布时间】:2014-03-26 04:18:45
【问题描述】:
当我尝试编译时:
#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;
^
也许我还需要#include 其他东西?
【问题讨论】:
标签: c multithreading sdl sdl-2