freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H


From: David Turner
Subject: Re: [ft-devel] Invalid Preprocessor directive: #include FT_FREETYPE_H
Date: Sun, 2 Nov 2008 10:21:00 +0100

hmmm, your compiler is not ANSI-C compliant, since #include MACRO_NAME is defined by the standard as a valid construct.

You should get a better compiler, or write a script to replace all occurences of #include MACRO_NAME with #include <corresponding/header.h>

2008/10/2 ccube <address@hidden>

Hi,
I want to use the FT2 library in my own programm.

For testing, i use this sample code from the Freetype Project:

#include <ft2build.h>
#include FT_FREETYPE_H

FT_Library library; ...
 error = FT_Init_FreeType( &library );
if ( error ) {
... an error occurred during library initialization ...
}

When compiling, i always get an error like "Invalid Preprocessor directive:
#include FT_FREETYPE_H"

What is missing?

My Systems are Ubutnu 8.04, 8.10, x64, x86
Everywhere the same error.

Compiler is the standard ubuntu gcc compiler.

Can anyone help me?

Regards,
Lukas
--
View this message in context: http://www.nabble.com/Invalid-Preprocessor-directive%3A--include-FT_FREETYPE_H-tp19778956p19778956.html
Sent from the Freetype - Dev mailing list archive at Nabble.com.



_______________________________________________
Freetype-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/freetype-devel


reply via email to

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