I have a C++ program (.cpp) inside which I wish to use some of the functions which are present inside the C header files such as stdio.h, conio.h, stdlib.h, graphics.h, devi
If you put this inside your headers:
#ifdef __cplusplus extern "C" { #endif // your normal definitions here #ifdef __cplusplus } #endif
Then it will work for both C and C++ without any problem ...
Hope this helps...:)