Andrew Haley wrote:
Yes. Make me a self-contained reproducible test case and I'll tell you where the problem is.
Sigh, sorry for wasting everyone's time on this.I've finally found that due to wrong #defines and #includes, my 2 sources files were built with different definitions of "Atom". Making sure they were definied the same way fixed the issue, no more silly swaping required.
Thanks to all of you for your help, it helped me a lot and sorry for the noise on this list.
Cheers, Rémi