I really don't know what you want to express.
If u write the code with C:
#ifdef __cplusplus /* or #if defined(__cplusplus) */
Extern "C" {
#endif
/* your code below */
#ifdef __cplusplus
}
#endif
then , the c++ compiler can compile this c program.
If u write the code with C++:
#include <pthread.h> /* this can use a c head file */
#include <iostream> /* this is a c++ head file */


