title: Call a C function from C++ code
body: <p>I have a C function that I would like to call from C++. I couldn't use "<code>extern "C" void foo()</code>" kind of approach because the C function failed to be compiled using g++. But it compiles fine using gcc. Any ideas how to  call the function from C++?</p>