Hisi海思交叉编译iperf3,提示undefined reference to `__ctype_tolower' __ctype_b
来源:互联网 发布:淘宝上都是国产植鞣革 编辑:程序博客网 时间:2024/06/11 00:22
配置方法:
./configure --host=arm-hisiv200-linux CFLAGS=-static --enable-static LDFLAGS=-static --disable-shared
出现提示后,在main.c中定义
static int run(struct iperf_test *test);
#include <ctype.h>
__const unsigned short int *__ctype_b;
__const __int32_t *__ctype_tolower;
__const __int32_t *__ctype_toupper;
void ctSetup()
{
__ctype_b = *(__ctype_b_loc());
__ctype_toupper = *(__ctype_toupper_loc());
__ctype_tolower = *(__ctype_tolower_loc());
}
在main()函数中执行一下:
main(int argc, char **argv)
{
struct iperf_test *test;
ctSetup();
然后还有2,3个文件编译时候会提示__ctype错误。哪个提示错误在哪个文件中做如下定义:
extern __const unsigned short int *__ctype_b;
extern __const __int32_t *__ctype_tolower;
extern __const __int32_t *__ctype_toupper;
阅读全文
0 0
- Hisi海思交叉编译iperf3,提示undefined reference to `__ctype_tolower' __ctype_b
- 'undefined reference to `__ctype_tolower' 或 '__ctype_b'
- undefined reference to `__ctype_b'
- undefined reference to '__ctype_b'
- iperf3.0 hisi uclib 交叉编译
- 交叉编译: undefined reference to `rpl_malloc'
- 交叉编译: undefined reference to `rpl_malloc'
- 编译提示undefined reference to `dlsym'
- sqlite3 交叉编译 undefined reference to `fdatasync' 错误解决
- 交叉编译中出现的 'Undefined reference to __aeabi_read_tp' 错误
- json-c 交叉编译(undefined reference to rpl_malloc )
- spawn-fcgi 交叉编译(undefined reference to rpl_malloc )
- mips-openwrt交叉编译 undefined reference to `__stack_chk_guard 错误
- Qt交叉编译环境-undefined reference to `inotify_init1@GLIBC_2解决
- 交叉编译tslib,遇到undefined reference to rpl_malloc错误解决办法
- qt+mingw编译出错,提示undefined reference to `**@**'
- android sdk编译 提示error: undefined reference to memchr
- 编译php7.0.17报错提示 undefined reference to `libiconv_open'
- iOS系统架构和常用框架
- 非洲 喀麦隆 Paul Epete CAGNOB 超大订单 骗局
- [洪流学堂]Hololens开发入门篇2之Hello World
- 【机器学习】Sklearn库主成分分析PCA降维的运用实战
- flume学习(四):Flume Interceptors的使用
- Hisi海思交叉编译iperf3,提示undefined reference to `__ctype_tolower' __ctype_b
- 编程中的24条经典语录
- textview 设置SpannableStringBuilder实现点击事件
- 顺序栈的C语言实现——初始化函数、入栈函数和出栈函数
- [angular]动态加载,降低页面初始化时间
- Fiori2.0学习笔记-OData的应用
- 如何客制化自己的开机向导
- 有关case when的两个sql案例
- 富士康给员工分红 平均每人33万元