1. 程式人生 > >ACE在LINUX下環境搭建的一個小問題及處理

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都沒有問題。