在本地iOS代码(代码名称为One)中调用Log.p(...) [英] Call Log.p(...) in native iOS code (Codename One)

查看:52
本文介绍了在本地iOS代码(代码名称为One)中调用Log.p(...)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题仅与Codename One本机接口有关。

This question is relevant only for Codename One native interfaces.

在Codename One中,本机代码, iOS,我正在尝试这样做:

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]));

但我得到:

Implicit declaration of function 'com_codename1_io_Log_p___java_lang_String' is invalid in C99

这是什么问题?谢谢

推荐答案

您需要在标题顶部添加标题。具体来说:

You need to include the header at the top. Specifically:

#include "com_codename1_io_Log.h"

C隐式声明一个以前未看到的函数。

C implicitly declares a function it didn't "see" before.

这篇关于在本地iOS代码(代码名称为One)中调用Log.p(...)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆