#include <iconv.h>
int main () {
/* If it's not defined as a macro, try to use as a symbol */
#ifndef libiconv_open
libiconv_open;
#endif
}
Compiler stdout:
Compiler stderr:
/tmp/tmpjop8js2n/testfile.c: In function 'main':
/tmp/tmpjop8js2n/testfile.c:6:17: error: 'libiconv_open' undeclared (first
use in this function); did you mean 'iconv_open'?
6 | libiconv_open;
| ^~~~~~~~~~~~~
| iconv_open
/tmp/tmpjop8js2n/testfile.c:6:17: note: each undeclared identifier is
reported only once for each function it appears in
Header <iconv.h> has symbol "libiconv_open" : NO
meson.build:1717:4: ERROR: Problem encountered: iconv implementation "gnu"
not found