Linker SDL_ttf链接错误代码::块(Windows)
我已经按照lazyfoo.net的教程学习了如何将SDL_ttf与Code::Blockswindows链接,但有些地方出了问题。我发现以下错误:Linker SDL_ttf链接错误代码::块(Windows),linker,sdl,codeblocks,sdl-ttf,Linker,Sdl,Codeblocks,Sdl Ttf,我已经按照lazyfoo.net的教程学习了如何将SDL_ttf与Code::Blockswindows链接,但有些地方出了问题。我发现以下错误: C:\SDL_ttf-2.0.11\include\SDL_ttf.h|30|error: SDL.h: No such file or directory| C:\SDL_ttf-2.0.11\include\SDL_ttf.h|31|error: begin_code.h: No such file or directory| C:\SDL_tt
C:\SDL_ttf-2.0.11\include\SDL_ttf.h|30|error: SDL.h: No such file or directory|
C:\SDL_ttf-2.0.11\include\SDL_ttf.h|31|error: begin_code.h: No such file or directory|
C:\SDL_ttf-2.0.11\include\SDL_ttf.h|247|error: close_code.h: No such file or directory|
||=== Build finished: 3 errors, 0 warnings ===|
有什么想法吗?在SDL\u ttf.h中更改
#include"SDL.h"
#include"begin_code.h"
#include"close_code.h"
到
我刚刚将代码移植到VisualStudio,并为其下载了SDL_tff,它正在工作。
#include<SDL/SDL.h>
#include<SDL/begin_code.h>
#include<SDL/close_code.h>