News for hackers. Stuff that matters.
Re: Understanding lvalues and rvalues in C and C++ by lysium on Thursday December 15, 2011 @06:07PM (#3358501)
Mangling is not standardized and every compiler does it differently. In general, you can't link files compiled by different C++ compilers.
Re: Understanding lvalues and rvalues in C and C++ by apaprocki on Thursday December 15, 2011 @07:07PM (#3358697)
And to make things even more fun, each individual compiler usually comes with baggage it has collected over the years. In xlC alone the -qnamemangling option can be set to: ansi (don't let it fool you), v11, v10, v9, v8, v7, v6, v5, v4, v3, or compat so even code build with the same compiler isn't always compatible.