freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft2-demos][win32] Compiler Warnings


From: Vincent Torri
Subject: Re: [ft2-demos][win32] Compiler Warnings
Date: Sun, 26 Jul 2020 13:43:41 +0200

On Sun, Jul 26, 2020 at 1:37 PM Alexei Podtelezhnikov
<apodtele@gmail.com> wrote:
>
>
> > are you compiling static library of freetype ? If you compile a shared
> > library, you should not have this warning
>
> Yes, I am compiling a static library. And yes, they disappear when I compile
> a dynamic library.
>
>
> It should be controlled by DLL_EXPORT or lack thereof.

if DLL_EXPORT is not set, then FT_EXPORT is defined as
__attribute__(( visibility( "default" ) )), hence the warning

for a static lib, FT_EXPORT should be set to nothing. @Anuj Verma add
-DFT_EXPORT to CPPFLAGS at configure time

Vincent Torri



reply via email to

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