Thank you, have been solution.

On 4月27日, 下午11時19分, Michael MacDonald <googlec...@antlersoft.com>
wrote:
> Keroro wrote:
>
> You need to supply variable names for all your function parameters, not
> just jinit j.
>
>
>
> > Whybuilderror?
>
> >buildand Error Message:
> > ../mydroid$ make libmax
> > target thumbC: libmax <= development/max/max.c
> > development/max/max.c: In function 'Java_testdll_set':
> > development/max/max.c:7: error: parameter name omitted
> > development/max/max.c:7: error: parameter name omitted
> > make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/
> > libmax_intermediates/max.o] Error 1
>
> >codeas follows:
>
> > max.c
> > =======================================================================
> > #include <jni.h>
> > JNIEXPORT void JNICALL Java_testdll_set (JNIEnv *, jclass, jint);
>
> >  int i = 0;
>
> >     JNIEXPORT void JNICALL Java_testdll_set (JNIEnv *, jclass, jint
> > j)
> >       {
> >        i = j;
> >       }
> > =======================================================================
>
> > Android.mk
> > ================================
> > LOCAL_PATH:= $(call my-dir)
>
> > include $(CLEAR_VARS)
>
> > LOCAL_SRC_FILES:= \
>
> >     max.c
>
> > LOCAL_C_INCLUDES := \
>
> >     $(JNI_H_INCLUDE)
>
> > LOCAL_SHARED_LIBRARIES := \
>
> >     libutils
>
> > LOCAL_PRELINK_MODULE := false
>
> > LOCAL_MODULE := libmax
>
> > include $(BUILD_SHARED_LIBRARY)
> > ==================================- 隱藏被引用文字 -
>
> - 顯示被引用文字 -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to