c++, MingW, undefined reference to `libiconv'

3k Views Asked by At

I'm getting these errors with MingW:

undefined reference to `libiconv_close'
undefined reference to `libiconv_open'
undefined reference to `libiconv'

I have the libiconv package from MingW installed. What is causing this? If this is of some importance, I'm trying to get tinygettext working.

1

There are 1 best solutions below

0
On BEST ANSWER

You must have forgotten to add -liconv to the link line. Adding that there should resolve those problems.