博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
libiconv 使用 emcc 编译
阅读量:2432 次
发布时间:2019-05-10

本文共 612 字,大约阅读时间需要 2 分钟。

将目标工程编译为字节码,方便在c++移植时使用。

需要注意的:

不同版本的emscripten编译的字节码文件是不同的,不能通用。同一版本的可以通用

编译指令:

emconfigure ./configure --perfix=/home/libiconv/emmake make

很简单,等待结束即可。

问题1:

在这里插入图片描述

n file included from error.c:27:./stdio.h:1011:66: error: token is not a valid binary operator in a preprocessor subexpression#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)                                                  ~~~~~~~~~~~~~~~^

解决方法:

在libiconv/srclib文件中,找到stdio.in.h文件,大概在700行左右,注释

_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");

在这里插入图片描述

重新执行以下指令:

emmake make

编译文件地址:

libiconv/preload/.libs/libiconv.so

转载地址:http://cmvmb.baihongyu.com/

你可能感兴趣的文章
WebSphere Process Server 新手入门
查看>>
WebSphere 和 SOA 新手入门
查看>>
由准备盗链发现的几个WAS的配置参数
查看>>
WebSphere MQ 7.0新產品發表,新功能一窺究竟!
查看>>
WebSphere Application Server 常见问题及解答:故障诊断
查看>>
WebSphere Application Server 常见问题及解答:迁移
查看>>
[转载]假如让我重返校园,我会怎样学习开发技术
查看>>
WebSphere客户端迁移的一般问题
查看>>
权威支持: WebSphere Application Server 日志记录开发人员指南
查看>>
WebSphere 反向投资者: 更好的高可用性 Web 应用程序配置
查看>>
改善Dojo应用程序的初始下载时间
查看>>
了解 WebSphere Application Server Feature Pack for Web 2.0
查看>>
了解 WebSphere Business Modeler 与 FileNet 集成
查看>>
连接IBM websphere MQ原因码报2035的错误解决办法
查看>>
Web Services Security 的签名流
查看>>
WebSphere Business Process Management V6.1 入门
查看>>
使用 WebSphere Process Server 关系开发集成解决方案
查看>>
增强 WebSphere Service Registry and Repository 的搜索功能
查看>>
WebSphere Process Server 产品的运行时升级和移植策略及参考实现
查看>>
使用 WebSphere Extended Deployment Compute Grid 进行批处理编程之初探
查看>>