In our projects we decided to prefix member variables and some private/protected methods with underscore (so with “_”).
During a discussion it was claimed that this is discouraged to do because of some incompatibilities with some compilers/linkers on some platforms. As we want to be a portable as possible I’d like to be sure.
I also reckon that prefixing globals with underscores in C can be a problem.
Does the same apply to C++-linkage and if so, in which cases (platforms/compilers/linkers)?
From the C++03 standard: §17.4.3.1.2/1
The equivalent text is present in C++11 §17.6.4.3.2/1