所以我现在已经在两个小时左右寻找,但是还没找到一个可行的解决方案。我使用SDL 2.0.4,所有库都用于x64架构。我没有得到SDL v1的错误,但我需要一些较新的功能。以下是什么:
信息:内部构建器用于构建
gcc -o Winchester.exe" src \ Winchester.o" -lmingw32 -lSDL2
src \ Winchester.o:在函数SDL_main':
C:\Users\inigo\workspace\Winchester\Debug/../src/Winchester.c:17: undefined reference to
SDL_Init'
C:\ Users \ inigo \ workspace \ Winchester \ Debug /../ src / Winchester.c:20:未定义引用SDL_CreateWindow'
C:\Users\inigo\workspace\Winchester\Debug/../src/Winchester.c:22: undefined reference to
SDL_Quit'
C:\ Users \ inigo \ workspace \ Winchester \ Debug /../ src / Winchester.c:26:未定义引用SDL_CreateRenderer'
C:\Users\inigo\workspace\Winchester\Debug/../src/Winchester.c:28: undefined reference to
SDL_DestroyWindow'
C:\ Users \ inigo \ workspace \ Winchester \ Debug /../ src / Winchester.c:29:未定义引用SDL_Quit'
C:\Users\inigo\workspace\Winchester\Debug/../src/Winchester.c:36: undefined reference to
SDL_PollEvent'
C:\ Users \ inigo \ workspace \ Winchester \ Debug /../ src / Winchester.c:39:未定义引用SDL_DestroyRenderer'
C:\Users\inigo\workspace\Winchester\Debug/../src/Winchester.c:40: undefined reference to
SDL_DestroyWindow'
c:/ mingw / bin /../ lib / gcc / mingw32 / 4.8.1 /../../../ libmingw32.a(main.o):(。text.startup + 0xa7):未定义引用`的WinMain @ 16'
collect2.exe:错误:ld返回1退出状态
任何帮助?