freetype-devel
[Top][All Lists]
Advanced

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

RE: [ft-devel] FreeType2 2.3.5 Visual Studio Solution Warnings


From: Sargrad, Dave
Subject: RE: [ft-devel] FreeType2 2.3.5 Visual Studio Solution Warnings
Date: Thu, 8 Nov 2007 08:39:38 -0500

Thanks for the responses. 

In the distribution that I downloaded. I see the following two lines
commented out (along with a description along the lines of what you are
suggesting):

/* #define  FT_EXPORT(x)       extern x */
/* #define  FT_EXPORT_DEF(x)   x */

Later in the same file (ftoption.h) I see FT_EXPORT defined as follows:

#define FT_EXPORT(x)    FREETYPE2_DLL_IMPEXP x
#define FT_BASE(x)      FREETYPE2_DLL_IMPEXP x

I never see FT_EXPORT_DEF defined. 

Is FT_BASE something that I need to change?  

I'll try to change "FT_EXPORT(x)" from "FREETYPE2_DLL_IMPEXP x" to
"__declspec(dllexport) x" and as well I'll try to add a definition for
"FT_EXPORT_DEF(x)" to be "__declspec(dllexport) x"

-----Original Message-----
From: Graham Asher [mailto:address@hidden 
Sent: Thursday, November 08, 2007 6:29 AM
To: 'Werner LEMBERG'; Sargrad, Dave
Cc: address@hidden
Subject: RE: [ft-devel] FreeType2 2.3.5 Visual Studio Solution Warnings

This worked for me a while ago when compiling FreeType into a Windows
DLL:

#define FT_EXPORT(return_type) __declspec(dllexport) return_type #define
FT_EXPORT_DEF(return_type) __declspec(dllexport) return_type

Graham

-----Original Message-----
From: address@hidden
[mailto:address@hidden
On Behalf Of Werner LEMBERG
Sent: 08 November 2007 08:51
To: address@hidden
Cc: address@hidden
Subject: Re: [ft-devel] FreeType2 2.3.5 Visual Studio Solution Warnings


> I tried to compile the solution bundled with 2.3.5. The solution built

> without error, but with dozens of warnings such as the following:
>
> 1>c:\development\build\gnuwin32\src\freetype\2.3.5\freetype-2.3.5\src\
> 1>tr
> uetype\ttinterp.c(772) : warning C4273: 'TT_New_Context' : 
> inconsistent dll linkage
>
> 1>
> c:\development\build\gnuwin32\src\freetype\2.3.5\freetype-2.3.5\src\tr
> ue
> type\ttinterp.h(262) : see previous definition of 'TT_New_Context'

You properly have to redefine FT_EXPORT and FT_EXPORT_DEF, I think, to
pass `__declspec(dllexport)' or something like this to the compiler.
However, I can't give any precise recipe since I don't use this
platform.

It would be great if the visual studio files could be updated to handle
this automatically.  However, I got the impression that this already
works...

Can someone shed light on this?


    Werner


_______________________________________________
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]