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 15:32:38 -0600


Hi David,

Thanks for your help!

When I disable pre-compiled headers, I can build my example perfectly. However, I don't know how to disable them when building with Visual C++ from the command line (in a Makefile).

The makefile doesn't appear to turn on pre-compiled headers, and there doesn't appear to be simple compiler option to turn them off... so I'm not sure how to proceed.

You've already pointed the way, so don't worry if you can't help me any further.

Best regards,
Tom

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

_________________________________________________________________
Visit MSN Holiday Challenge for your chance to win up to $50,000 in Holiday cash! http://www.msnholidaychallenge.com/default.aspx?ocid=tagline&locale=en-us





reply via email to

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