On Sun, Jul 26, 2020 at 1:37 PM Alexei Podtelezhnikov <apodt...@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