Trouble in adding, cpp header in c file.
Hi,
I am facing trouble in adding CPP header in C file.
I have main.c, of native NDK, was trying to
call cpp functions from this main.c, but while
adding cpp header on to c file its throwing error.
Error :
jni/main.c:35: error: expected identifier or '(' before string constant
jni/main.c: In function 'android_main':
My main.c file has :
/*c_file.h*/
#ifndef __cplusplus
extern "C++" { /*Line 35: Getting error at this line */
#endif
//#include "cpp_file.h" /*My CPP header file*/
#include "libcam.h"
#ifndef __cplusplus
}
Any pointer will help
Thanks,
----------------------------------------------------------------------------------------------------------------------------------
Atul Raut
http://rautatul.weebly.com/