我将我的 Android.mk 定义如下:
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)
optplugin.c 文件对 optionobjclass.c 中实现的方法抛出了许多未定义的引用
我将不胜感激任何帮助。
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