From: "David Turner" <address@hidden>
To: "Tom Milford" <address@hidden>, address@hidden
Subject: Re: [ft] Using Freetype2 with Visual C++ 6.0
Date: Tue, 05 Dec 2006 21:28:04 +0100
Hello Tom,
I believe the problem is due to a bug in Visual C++'s implementation
of pre-compiled headers. Simply disable this feature, this should
build perfectly.
Hope this helps,
- David Turner
- The FreeType Project (www.freetype.org)
On Tue, 05 Dec 2006 13:25:15 -0600, "Tom Milford" <address@hidden>
said:
> Hi,
>
> I'm having trouble using Freetype 2 with Visual C++ 6.0. Is this
> compiler
> still supported?
>
> The problem is using #define's in include statements. See below for an
> example. I've confirmed that this is a problem on Visual C++ 6.0 with a
> small program, also below.
>
> Best regards,
> Tom
>
> /***************************************/
> /* compiler output */
>
> Compiling Glyph Keeper / static Allegro with MSVC 7.1
> cl /nologo /W3 /O2 /MD -DALLEGRO_STATICLINK -DGK_NO_LEGACY
> -DGLYPH_TARGE
> T=GLYPH_TARGET_ALLEGRO /c /Fo"obj\gkallegs.obj" src\glyph.c
> glyph.c
> C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\freetype/internal/ftobjs.h(32) : error
> C2006:
> #include expected a filename, found 'identifier'
> C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\freetype/internal/ftobjs.h(33) : error
> C2006:
> #include expected a filename, found 'identifier'
> C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\freetype/internal/ftobjs.h(34) : error
> C2006:
> #include expected a filename, found 'identifier'
> C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\freetype/internal/ftobjs.h(35) : error
> C2006:
> #include expected a filename, found 'identifier'
>
>
>
>
> /***************************************/
> /* test program, built from hello world command line template of visual
> C++
> 6.0 */
>
>
> /* main.c */
>
> #include "include_test.h"
> #include STD_AFX_H
>
> int main(int argc, char* argv[])
> {
> printf("Hello World!\n");
> return 0;
> }
>
>
> /* include_test.h */
> #define STD_AFX_H "stdafx.h"
>
> /* compiler output: */
> Compiling...
> include_test.cpp
> c:\documents and settings\tom
> milford\desktop\envision\include_test\include_test.cpp(5) : error C2006:
> #include expected a filename, found 'identifier'
> c:\documents and settings\tom
> milford\desktop\envision\include_test\include_test.cpp(5) : fatal error
> C1903: unable to recover from previous error(s); stopping compilation
>
> _________________________________________________________________
> Get free, personalized commercial-free online radio with MSN Radio
> powered
> by Pandora http://radio.msn.com/?icid=T002MSN03A07001
>
>
>
> _______________________________________________
> Freetype mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/freetype