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

来源:互联网 发布:java 多次使用scanner 编辑:程序博客网 时间:2024/06/05 01:08

昨天下午在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都没有问题。

原创粉丝点击