SDL_ttf链接错误Code :: Blocks(Windows)

时间:2013-01-12 13:50:54

标签: linker sdl codeblocks sdl-ttf

我已经按照lazyfoo.net的教程如何将SDL_ttf链接到Code :: Blocks(windows),但是出了点问题。我收到这些错误:

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 ===|

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

在SDL_ttf.h中更改

#include"SDL.h"
#include"begin_code.h"
#include"close_code.h"

#include<SDL/SDL.h>
#include<SDL/begin_code.h>
#include<SDL/close_code.h>