On 2016-10-30 12:23, cyg Simple wrote:
The below sample code will give a warning that visibility isn't
supported in this configuration. Either the GCC build is incorrect or
the sys/cdefs.h needs to be modified to define __hidden to empty.
https://cygwin.com/ml/cygwin/2005-08/msg01057.html
gcc wiki demonstrates what needs to be done instead:
https://gcc.gnu.org/wiki/Visibility#line-76
at a minimum add `&& !define(__CYGWIN__)`; other posts also exclude
MinGW and ARM-PE (W10 Surface, IoT) targets using PE format not ELF;
gcc notes not all ELF targets support this:
https://gcc.gnu.org/onlinedocs/gcc-3.3.5/gcc/Function-Attributes.html#index-_0040code_007bvisibility_007d-attribute-1624
Which raises the interesting question - anyone tried porting Cygwin
to non-x86 arch?
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple