ACE在LINUX下环境搭建的一个小问题及处理

昨天下午在Ubuntu下搭建ACE环境。

在做完环境变量设置,创建config.h后,按照安装说明进行make.一段时间后提示了如下错误,并终止了make.

/usr/local/ACE_wrappers/apps/gperf/tests/test.cpp:28: undefined reference to
`in_word_set(char const *, unsigned int)'
collect2: ld returned 1 exit status
make[4]: *** [cppout] Error 1
make[4]: Leaving directory `/usr/local/ACE_wrappers/apps/gperf/tests'

于是在网上找资料,但是提到这个问题的比较少,最后找到一个帖子,记录一下。

网上的原文:

On this particular machine (linux version?) setting LD_LIBRARY_PATH doesn't
seem to work by itself - I also have the ACE and TAO directories in
/etc/ld.so.conf. At a couple of stages in the build process I have to run
ldconfig for the process to continue. I found the generated cpp.cpp file,
but it was zero size. I erased it and reran make and then I was able to get
past my original problem (it regenerated a good cpp.cpp file).

我的处理方法是把cpp.cpp删除了。

接着的make和install都没有问题。


评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值