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)?