我现在有一个android 的工程,有一个des.h头文件和des.cpp、NZEncryption.c两个文件,一些函数在des.h头文件中声明,在des.cpp中实现。然后在NZEncryption.c中使用,工程目录结构
在NZEncryption.c中声明的头文件
#include <string.h>
#include <jni.h>
#include "des.h"然后在Android.mk中写的如下:
LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib -llogLOCAL_MODULE    := NewZone01
LOCAL_SRC_FILES := NZEncryption.c\
                   des.cppinclude $(BUILD_SHARED_LIBRARY)但用Cygwin生成.so文件时,提示:undefined reference to "des_encrypt"
当des_encrypt已在des.h中声明,在des.cpp中实现
不知道怎么回事,该如何在能正确的生成