Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个错误:
未定义符号:SDL_FreeSurface
我试图调用void SDL_FreeSurface(SDL_Surface* surface);需要释放表面的方法,但这似乎并不能解决问题。
void SDL_FreeSurface(SDL_Surface* surface);
我将 SDL 1.2 与-lSDL, 和-lSDL_image选项 ( /usr/bin/ld: cannot find -lSDL_image) 相关联。
-lSDL
-lSDL_image
/usr/bin/ld: cannot find -lSDL_image
我使用动态库。
我知道了 :
在 Ubuntu 上,您需要将 -l$(LIB_NAME) 放在编译行的末尾,如下所示:
gcc *.cpp [OPTIONS] -l$(LIB_NAME)