C and C++ integration.

  • Thread starter Thread starter Abhijith NM
  • Start date Start date
A

Abhijith NM

Guest
Hello team,

I am looking to integrate C and C++ code in Visual studio.

C source is FreeRTOS Demo source code.

C code is my code which I am planning to integrate.

I tried In C++ header file.

#ifdef __cplusplus

extern "C" {
#endif


#ifdef __cplusplus
}
#endif


In C++ source file i tried.

extern "C" {

}


But neither of them help me to compile a C++ member function being called in C Code.

Error:2061 syntax error: identifier test1.


Please help me resolve this error at the earliest. Please do the needful.

Thanks and Regards

Abhijith N.M.

Continue reading...
 
Back
Top