freetype
[Top][All Lists]
Advanced

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

Re: [ft] Using Freetype2 with Visual C++ 6.0


From: Tom Milford
Subject: Re: [ft] Using Freetype2 with Visual C++ 6.0
Date: Tue, 05 Dec 2006 16:22:22 -0600

Hi David,

Seems like I solved the problem. Just had to make my own Visual C++ project instead of using the makefiles. That allowed me to definitively turn off precompiled headers and now the library builds without warning.

Thanks again for your help,
Tom


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

_________________________________________________________________
Share your latest news with your friends with the Windows Live Spaces friends module. http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mk





reply via email to

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