I've defined my Android.mk as follow:
LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_C_INCLUDES += $(LOCAL_PATH) LOCAL_SRC_FILES := optplugin.c \ optionobjclass.c \ LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog LOCAL_MODULE:= optplugin include $(BUILD_SHARED_LIBRARY) the optplugin.c files throws many undefined reference to methods that are implemented in optionobjclass.c
I would appreciate any kind of help.
The declaration in optplugin.c:
#include <stdio.h> #include <string.h> #include <stdlib.h> //#include "pluginHelp.h" #include "npapi.h" #include "npruntime.h" //#include "npupp.h" #include "mcvdebug.h" //#include "jritypes.h" //#include "gogi_plugin_api.h" /* GOGI Deprecated */ #include "optionobjclass.c" #include "optionsClass.h" #include "IOlsOptionObject.h" #include "npunix.c" #define TRACESYMBOL(...) extern int a; #define TraceDebug(m, ...) printf(__VA_ARGS__) #define TRUE 1 #define FALSE 0