Abdelrazak Younes wrote:
Bo Peng wrote:
D:\devel\lyx\trunk\intl\dcigettext.c:933: error: `ICONV_CONST'
undeclared (first use in this function)

This is the problem I try to solve. Now, do you have ICONV_CONST in
your src/config.h?

No:
/* #undef ICONV_CONST */

If not, please paste here the portion of config.log
that look like this:

I think I know what's going on Bo. I made this patch a while ago for iconv.m4. I didn't bother to apply it because this file was part of the gettext package and the autoconf worked fine without it.

Adaptating it to scons should be easy.

Abdel.

Index: m4/iconv.m4
===================================================================
--- m4/iconv.m4 (revision 13683)
+++ m4/iconv.m4 (working copy)
@@ -88,7 +88,9 @@
 "C"
 #endif
 #if defined(__STDC__) || defined(__cplusplus)
+#ifndef LIBICONV_DLL_EXPORTED
 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, 
size_t *outbytesleft);
+#endif
 #else
 size_t iconv();
 #endif

Reply via email to