Reputation: 3162
I'm currently programming a C++ Project which uses Freetype2 in Eclipse CDT. I like the automatic header parsing and code completion of Eclipse. However Eclipse fails to parse the standard FreeType2 include code:
#include <ft2build.h>
#include FT_FREETYPE_H
Eclipse doesn't understand that FT_FREETYPE_H
is a macro pointing to a header file and therefore doesn't parse it and add its tokens to auto completion. Since Eclipse doesn't know the tokens I use in my code it signals lots of errors in the code. However the code compiles without a problem. Is there a way to get eclipse to parse those FreeType2 header files?
Simply replacing FT_FREETYPE_H
with the include file it points to is not an option, because the same include technique is used in the FreeType2 Headers, which I don't want to edit.
Upvotes: 0
Views: 767
Reputation: 3395
Try right-clicking your project, go to Properties
-> C/C++ General
-> Paths and Symbols
-> Symbols
. Then define (for your compiler type) FT_FREETYPE_H
as your actual header file name.
Upvotes: 1