找不到-llibSDL2main

时间:2015-07-19 13:33:05

标签: c++ eclipse-cdt sdl-2

我正在尝试将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.)

enter image description here

但它向我显示错误cannot find -llibSDL2main

P.S我在问winapifamily时遇到过一次问题,但是我通过将winapifamily.h放入gcc\include来解决问题

0 个答案:

没有答案