I downloaded iconv yesterday, and installed it using:
$ ./configure --prefix=/usr/local
$ make
$ make install
When I tried to run iconv
from the shell, I got a complaint that the shared object file is not found, so I executed export LD_LIBRARY_PATH=/usr/local/lib
. Then iconv worked.
This caused an error in my application. I was unaware that one of the source files already included iconv.h
. Today I successfully built the debug version multiple times in eclipse, but when it comes to the release build, I get these errors:
undefined reference to `libiconv_close'
undefined reference to `libiconv_open'
undefined reference to `libiconv'
I then panicked, and ran make uninstall
, restarted, but the problem remains. How can I get my program working again?
ldconfig -v | grep "iconv" shows:
libiconv.so.2 -> libiconv.so.2.5.1
I'm on Ubuntu 12.04 LTS