把静态库链接进so库中及C++调用C

 静态库链接进动态库so中:

Android.mk:

                       LOCAL_LDFLAGS   := $(LOCAL_PATH)/compasslib_h6_gcc_armv4t.a


C++调用C(xxx.h):

                     #ifdef __cplusplus
                     extern "C" {                     
                     #endif
                     extern void init_algo(void);
                     extern void close_algo(void);
                     extern void change_state(void);
                     extern int deal_data_acc(void);
                     extern int deal_data_mag(void);
                     extern int deal_data_ori(void);
                     #ifdef __cplusplus

                     }
                     #endif


你可能感兴趣的:(C++,c,gcc,Path)