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.

Qt Code:
  1. const FT_Long DEFAULT_FACE_INDEX = 0;
  2. ftFace = new FT_Face;
  3.  
  4. err = new FT_New_Memory_Face( *BitmapLibrary::Instance( ).GetLibrary( ),
  5. (FT_Byte *)pBufferBytes,
  6. bufferSizeInBytes,
  7. DEFAULT_FACE_INDEX,
  8. ftFace );
To copy to clipboard, switch view to plain text mode 

Thanks in advance.