1

我已经按照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 ===|

有任何想法吗?

4

1 回答 1

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>
于 2013-03-13T13:18:00.053 回答