This file does not need to be C++ as far as I can tell. And if it really needs C++, then extern "C" should be after the #include's. -- Rémi Denis-Courmont http://www.remlab.net http://fi.linkedin.com/in/remidenis