Hi Veter,
You can't include C headers in C++ files unless you tell the compiler that the included code is C and not C++. This is because the C and C++ functions are called in different ways.
You tell the compiler that the files are C by using this construct:
Code:extern "C"{// C function declarations as normal...}
If you are including your own headers, it is a good idea to use #defines like so:
Code:// At the start of the header file put this:#ifdef __cplusplusextern "C" {#endif // At the end of the header put this:#ifdef __cplusplus}#endif
If you are using system headers that you cannot modify do this where you include them:
Code:extern "C"{#include "ctype.h"}
Cheers,
Paul.