我正在尝试将eclipse c++
配置为使用SDL2.0.3
。
1) I downloaded SDL
2)put `SDL2` folder with headers into `gcc\include` folder
3)I put libSDL2.a, libSDL2.dll.a, libSDL2.la, libSDL2_test.a, libSDL2main.a into gcc\lib folder
4) I put SDL2.dll into my current project's configuration DEBUG folder
5) I added in `project->properties->c/c++ build->settings->mingw c++ linker->libraries libSDL2main and libSDL2 (pic.)
但它向我显示错误cannot find -llibSDL2main
。
P.S我在问winapifamily
时遇到过一次问题,但是我通过将winapifamily.h
放入gcc\include
来解决问题