Bugzilla – Bug 1411
Inline specifiers for DoMakeAttributeAccessors
Last modified: 2014-02-21 19:35:25 UTC
On Apple version of gcc, I was getting duplicate symbol link errors. The following patch resolves the problem.
Created attachment 1383 [details] Patch
Created attachment 1571 [details] Patch1
Created attachment 1572 [details] Patch2
Alex: is this still needed? Just the second attachment? Could you please give the compiler version?
I'm using clang (clang-500.2.79) on OSX 10.9. In general, not having inline specifier there is wrong and should always have generated link errors... I think the problem can be reproduced if in the same class two different attributes use the same getter/helper, but not really sure.
(In reply to Alex Afanasyev from comment #5) > I'm using clang (clang-500.2.79) on OSX 10.9. > > In general, not having inline specifier there is wrong and should always > have generated link errors... I think the problem can be reproduced if in > the same class two different attributes use the same getter/helper, but not > really sure. I can't find any reason not to merge this. +1
Patched r10625 16bbfc4cb29d http://code.nsnam.org/ns-3-dev/rev/16bbfc4cb29d (Included in patch for Bug 1411 by mistake)