当前位置:网站首页>error: expected identifier or ‘(‘extern “C“ {
error: expected identifier or ‘(‘extern “C“ {
2022-07-18 09:01:00 【Novice Xiaowang】
extern "C" {
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
}It can be solved by changing to the following
#ifdef __cplusplus
extern "C"{
#endif
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
#ifdef __cplusplus
} // extern C边栏推荐
- Laravel reports an error: requires ext DOM * - > the requested PHP extension DOM is missing from your system
- MySQL中KEY、PRIMARY KEY、UNIQUE KEY、INDEX 的区别
- 【LeetCode】9. Flood Fill·图像渲染
- 国产版Postman工具,好用!
- Grails 引发的中文乱码问题
- 华为通用卡证识别功能,一键实现多种卡绑定
- Google Earth engine app (GEE) - view every image of Amazon plain from 1984 to now
- (2021 Niuke multi school V) k-king of range (monotonous queue /st table)
- iNFTnews | NFT門票將改變參與活動的方式
- 积累少儿编程的学时经验与实践
猜你喜欢

Finance, biomedicine, integrated circuits, and Shanghai giant industries use AI to support their core competitiveness

【微服务】Nacos数据持久化以及集群的搭建

iNFTnews | NFT门票将改变参与活动的方式

积累少儿编程的学时经验与实践

无需训练代码,推理性能提升1.4~7.1倍,业界首个自动模型压缩工具开源!

(2021牛客多校五)D-Double Strings(乘法原理+动态规划)

The industry's first "best practice map of live video technology" was released!

设置圆形头像--canvas和paint

建立自己的网站(23)

HMS Core图形图像技术展现最新功能和应用场景,加速构建数智生活
随机推荐
使用buildroot学习驱动开发
《学习的底层逻辑》精华
【MATLAB项目实战】基于GUI的数字信号处理系统
积累少儿编程的学时经验与实践
(2021牛客多校五)K-King of Range(单调队列/ST表)
[small 5 chat] simple use of built-in and custom delegation of C # Foundation
Steam课堂教育理念的延伸与扩展
(手工)【sqli-labs40、41】堆叠注入、盲注
【微服务】Nacos数据持久化以及集群的搭建
简约不简单的编程语言go
关于MySQL的基础学习
国内外知名的待办事项app
Uniapp custom header component
PCIE知识点-011:PCIE 配置能力结构与协议版本的关系
在 SQL Server 中查找活动的 SQL 连接
Finance, biomedicine, integrated circuits, and Shanghai giant industries use AI to support their core competitiveness
(codeforce453) A.little pony and expected maximum (mathematical expectation)
HMS Core图形图像技术展现最新功能和应用场景,加速构建数智生活
SQLyog无操作一段时间后重新操作会卡死问题(解决办法)
同花顺开户安全吗,同属顺是证券公司吗?