Visibility warning solved

Ok, I was getting all those nasty visibility warnings on my compiles.

Irrlicht is not using the __attribute__ ((visibility("default"))) to make things public when we set the global -fvisibility=hidden but what we can do is compile on XCode Irrlicht with -fvisibility=default and -fvisibility=hidden and DO THE SAME ON OUR CODE THAT USES THE LIB

So, all I had to do is to add:

On my GCC flags.

-fvisibility-inlines-hidden

Done! Linking times are not great!

Some links about this:
http://gcc.gnu.org/wiki/Visibility
https://winter.eecs.umich.edu/soar-bugzilla/show_bug.cgi?id=694
http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Code-Gen-Options.html#index-fvisibility-1636

Enviar um comentário

About This Blog

  © Blogger template Shush by Ourblogtemplates.com 2009

Back to TOP