title: IntelliSense:expected a declaration in C++
body: <p>I am trying add C and C++ code together, but end up with getting above error as <code>IntelliSense:expected a declaration</code>.</p>
  
  <p>e.g
  <code>abc.cpp</code></p>
  
  <pre><code>#include "abc.h"
  #ifdef __cplusplus
  extern "C"
  {
  #endif
  #include "C_headerfiles.h"
  ...
  ...//Body of C code
  #ifdef _cplusplus
  }
  #endif
  ...
  ...//Body of C plus plus code
  
  #ifdef __cplusplus
  extern "C"       //`IntelliSense:expected a declaration
  {
  #endif
  ...
  ...//Body of C code
  #ifdef _cplusplus
  }
  #endif
  </code></pre>