IceE-1.3.0的移植过程及错误Time.h:36: error: expected type-specifier before ‘time-转

编译iceE下载iceE源码包

下载地址:http://www.zeroc.com/icee/download.html

交叉编译

设置环境变量:exportPATH=/usr/local/arm-2008q3/bin:$PATH(根据各自机器的交叉工具链更改)

export CXX=arm-linux-c++

export AR=arm-linux-ar

然后执行make

报错:

In file included from../../include/IceE/Cond.h:13,


fromCond.cpp:10:


../../include/IceE/Time.h:36:error: expected type-specifier before ‘timeval’


出现上述错误,主要是由于缺少timeval的定义。在Time.h中添加

#ifndef _WIN32


# include <sys/time.h>


#endif

即可。

继续执行make.成功。

试运行

将IceE-1.3.0/cppe/demo/IceE/hello目录中的client目录、server目录拷贝到arm实验板上,同时把IceE-1.3.0/cppe/lib中文件复制到arm实验上。

在试验板linux中运行

$exportLD_LIBRARY_PATH=lib文件存放目录:$LD_LIBRARY_PATH

然后就可运行示例程序server和client程序了。

结果如下:

root@REER_emter:/media/card/IceE-1.3.0/hello/client#./client

usage:

t:send greeting as twoway

o:send greeting as oneway

O:send greeting as batch oneway

f:flush all batch requests

T:set a timeout

P:set a server delay

s:shutdown server

x:exit ?: help

当输入t时,如下:

==>t

HelloWorld!

==>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值