[cfe-dev] Why this extern "C" fails ?

bruce.r.stephens at gmail.com bruce.r.stephens at gmail.com
Mon Jul 29 07:58:49 PDT 2013


Renato Golin <renato.golin-QSEj5FYQhm4dnm+yROfE0A at public.gmane.org>
writes:

[...]

> As Olafur said, extern symbols should be in a global scope, and that "a"
> couldn't even be seen from the next line, and you'd see another error from
> the compiler if you removed the extern.

More generally, namespace scope (global scope is a special case, IIUC).

[...]




More information about the cfe-dev mailing list