问题
This question is relevant only for Codename One native interfaces.
In Codename One, native code, iOS, I'm trying to do:
com_codename1_io_Log_p___java_lang_String(CN1_THREAD_GET_STATE_PASS_ARG fromNSString(CN1_THREAD_GET_STATE_PASS_ARG [goCoderLicensingError localizedDescription]));
but I get:
Implicit declaration of function 'com_codename1_io_Log_p___java_lang_String' is invalid in C99
What's wrong? Thank you
回答1:
You need to include the header at the top. Specifically:
#include "com_codename1_io_Log.h"
C implicitly declares a function it didn't "see" before.
来源:https://stackoverflow.com/questions/58476922/call-log-p-in-native-ios-code-codename-one