mailing list of musl libc
 help / color / mirror / code / Atom feed
* libstdc++ namespace pollution
@ 2017-01-03 17:44 Justin Cormack
  2017-01-03 18:29 ` Rich Felker
  0 siblings, 1 reply; 10+ messages in thread
From: Justin Cormack @ 2017-01-03 17:44 UTC (permalink / raw)
  To: musl

I have been trying to build a C++ program recently, and came across
the issue that

1. libstdc++ always defines _GNU_SOURCE see
https://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.predefined
2. Musl defines pretty much everything once _GNU_SOURCE is defined

In this case the issue was that the program included <signal.h> and
then the register names REG_RIP etc were #defined as numeric
constants, while the program wanted to use them as names for an enum.

Does anyone have any recommendations (wondering about trying clang
libc++ perhaps)?

Justin


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

end of thread, other threads:[~2017-01-04 23:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-03 17:44 libstdc++ namespace pollution Justin Cormack
2017-01-03 18:29 ` Rich Felker
2017-01-03 21:16   ` Justin Cormack
2017-01-03 21:35     ` Rich Felker
2017-01-03 22:52       ` Justin Cormack
2017-01-03 23:17         ` Rich Felker
2017-01-03 23:33           ` Rich Felker
2017-01-03 23:53             ` Rich Felker
2017-01-04 14:33               ` Justin Cormack
2017-01-04 23:05                 ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).