freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Devel] wrong headers from freetype-2.1.4rc1


From: Werner LEMBERG
Subject: Re: [Devel] wrong headers from freetype-2.1.4rc1
Date: Mon, 03 Nov 2003 23:24:37 +0100 (CET)

[Sorry for the late reply.]

>   the compiler on Tru64Unix 5.1A has problems to compile
> against freetype2.

> cxx -o nsDeviceContextPS.o -c ... \
>   -I/software/@sys/usr/include \
>   -I/software/@sys/usr/include/freetype2 \
>   ... \
>   nsDeviceContextPS.cpp
>
> cxx: Error: /software/@sys/usr/include/freetype2/freetype/ftglyph.h, line 86:
>           identifier "FT_Library" is undefined
>     FT_Library             library;
> ----^
>
> [...]

Strange.  I don't know why you get this problem.  There are the
following lines in ftglyph.h:

  #include <ft2build.h>
  #include FT_FREETYPE_H

The first header file should be found due to the
`-I/software/@sys/usr/include', if FreeType 2 is installed correctly
on your system.  It loads freetype/config/ftheader.h which should be
found due to the `-I/software/@sys/usr/include/freetype2' command line
option.  In ftheader.h you can find the macro `FT_FREETYPE_H' which
defines the name and location of freetype.h, which then contains
declarations of FT_Library, etc.

In case your compiler doesn't properly handle `#include <macro>'
(which it should since this is ANSI C) I wonder why I don't see an
error message.  Otherwise I don't understand why FT_Library and
friends aren't defined properly.


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]