title: Compiling C++ with one C function in GCC
body: <p>Using gcc, I want to call one C function, declared in a .c file, in a .cpp program. The command I'm using is:</p>
  <p><code>gcc {.cpp files} -lstdc++ {.c file}</code></p>
  <p>I couldn't just convert the C file to CPP, but if I include a common header one of two things naturally happens:</p>
  <ol>
  <li>The CPP files don't understand what a C header is</li>
  <li>The C file doesn't understand what a CPP header is.</li>
  </ol>
  <p>How do I do this? Can I somehow compile the C function before and then use it?</p>