开发者

SDL_ttf not working in codeblocks

how do you set up sdl_ttf in codeblocks? Ive read lazyfoo's tutorial about adding new libraries to sdl, and have successfully added sdl_image to it. however, ttf refuses to work. i have downloaded the files, put the header file in the sdl folder, put the dlls and lib in 开发者_JAVA技巧syswow64 and added a -lSDL_ttf to the linker settings, but i keep on getting the error ld.exe||cannot find -lSDL_ttf| how do i fix this?


try -lSDL2_ttf because SDL_ttf library changed its name in SDL2


sudo apt-get install libsdl-ttf2.0-dev

Or in Windows, make sure you put the SDL_ttf libs and includes into the SDL folders.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜