public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* sys/cdefs.h or maybe gcc build issue
@ 2016-10-30 18:37 cyg Simple
  2016-10-30 21:33 ` Brian Inglis
  2016-11-01 19:42 ` Ken Brown
  0 siblings, 2 replies; 7+ messages in thread
From: cyg Simple @ 2016-10-30 18:37 UTC (permalink / raw)
  To: cygwin

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.

/********************************************/
#include <sys/cdefs.h>
#include <stdio.h>

__hidden void hello (char * str) {
	printf("%s %s\n", "Hello", str);
}

int main (int argc, char ** argv) {
	hello("cruel world!");
}
/********************************************/

-- 
cyg Simple

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-11-09  2:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-30 18:37 sys/cdefs.h or maybe gcc build issue cyg Simple
2016-10-30 21:33 ` Brian Inglis
2016-10-31 11:05   ` cyg Simple
2016-11-01 19:42 ` Ken Brown
2016-11-02  2:29   ` cyg Simple
2016-11-08 15:17     ` Corinna Vinschen
2016-11-09  2:09       ` cyg Simple

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).