I am compiling an application using the FreeType libraries that are included with Qt. I am using VisualStudios 2005 and 2003 with Qt4.1.0. Both environments give the same error when compiling:
1>.\src\BitmapFace.cpp(33) : error C2061: syntax error : identifier 'FT_New_Memory_Face'
I have all the include and library paths for FreeType correct and no other error messages are given. This same source code compiles just fine under Solaris and Linux.
const FT_Long DEFAULT_FACE_INDEX = 0;
ftFace = new FT_Face;
err = new FT_New_Memory_Face( *BitmapLibrary::Instance( ).GetLibrary( ),
(FT_Byte *)pBufferBytes,
bufferSizeInBytes,
DEFAULT_FACE_INDEX,
ftFace );
const FT_Long DEFAULT_FACE_INDEX = 0;
ftFace = new FT_Face;
err = new FT_New_Memory_Face( *BitmapLibrary::Instance( ).GetLibrary( ),
(FT_Byte *)pBufferBytes,
bufferSizeInBytes,
DEFAULT_FACE_INDEX,
ftFace );
To copy to clipboard, switch view to plain text mode
Thanks in advance.
Bookmarks