2013-01-12 33 views
1

我已經遵循lazyfoo.net的教程如何鏈接SDL_ttf與Code :: Blocks(窗口),但有些錯誤。我得到這些錯誤: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 ===| 

任何想法?

+0

我剛移植的代碼到Visual Studio和下載SDL_tff它和它的工作。 – Machiaweliczny

回答

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>