سؤال

I installed libiconv from http://www.gnu.org/software/libiconv/.

$ ./configure --prefix=/usr/local
$ make
$ make install

Then I add #include <iconv.h> declaration in my project.

I am getting following error how can I fix this?

fatal error: iconv.h: No such file or directory
compilation terminated.

P.S. I am using OS X.

هل كانت مفيدة؟

المحلول

Chances are, /usr/local/include is not in your default include path. Try adding -I/usr/local/include to your compilation command.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top