Why this extern "C" fails ?

As I understand 2 potential issues could be here

  1. ‘a’ maynot be visible to the second ‘{ }’ block containing std::cout

  2. Asking for extern “C” linkage for a stack variable, implying there is some C code which needs to see this stack variable

------- Original Message -------

Sender : Arji Cotarjicot@gmail.com

Title : [cfe-dev] Why this extern “C” fails ?