Cocos2dx 中 引入pthreads 多线程
来源:互联网 发布:限制某个ip访问 js 编辑:程序博客网 时间:2024/05/17 02:14
在编译过程中, 会报错 #error Please upgrade your GNU compiler to one that supports __declspec.
按照如下 做即可
1,在你引入pthread.h头文件出加上预编译,为什么呢?因为你的ndk里面已经有pthread 文件了
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
#include <pthread.h>
#else
#include "include/pthread.h"
#endif
2,在Android.mk 文件中添加
LOCAL_LDLIBS += -pthread
LOCAL_LDLIBS += -llog
3,顺利编译成功
0 0
- Cocos2dx 中 引入pthreads 多线程
- 多线程(pthreads) & fork
- PHP 多线程扩展 pthreads
- Pthreads多线程编程(1)
- PHP pthreads 多线程操作
- php 多线程 pthreads扩展
- Pthreads多线程编程(2)
- Pthreads多线程编程(3)
- php 多线程 pthreads安装
- Pthreads 多线程入门教程
- cocos2dx中使用多线程
- Cocos2dx中使用多线程
- PHP里的多线程(pthreads)
- PHP多线程扩展pthreads实例
- PHP多线程扩展pthreads示例
- php安装pthreads多线程扩展
- 多线程编程之一:pthreads介绍
- cocos2dx中使用多线程(转)
- Matlab已集成了HOG特征检测
- Java设计模式之——单例模式
- 立体匹配研究背景及意义
- 牟乃夏老师的AE二次开发笔记(第一章和第二章)
- Xtreme 10.0 - Inti Sets
- Cocos2dx 中 引入pthreads 多线程
- Android动态生成RadioButton
- java-泛型
- keystore 介绍
- 通过jetty启动项目
- 交互式SHELL和非交互式SHELL、登录SHELL和非登录SHELL的区别
- oracle分页查询
- Bluetooth4.0 smart ready and bluetooth smart
- 16.10.28