
13 Jul
2008
13 Jul
'08
12:22 p.m.
On Sun, Jul 13, 2008 at 5:56 AM, Steven Watanabe <watanabesj@gmail.com> wrote:
AMDG
I've been trying to work out a way to cause an explicit error if configuration macros are defined differently in different translation units. I really wish I could cause a link error, but the best I've been able to come up with so far is a runtime error
<snip>
Comments? Any better ideas?
I think that the next version of the gcc linker (known as GOLD) is meant to (optionally?) catch ODR violations. It should already be working, and this functionality already available. I do not know if there any tar ball available yet or if you have to fetch it from gcc svn. HTH, -- gpd