Abdelrazak Younes wrote:
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.

This patch solves it for me.

Abdel.
Index: scons_utils.py
===================================================================
--- scons_utils.py      (revision 14064)
+++ scons_utils.py      (working copy)
@@ -309,11 +309,13 @@
 "C"
 #endif
 #if defined(__STDC__) || defined(__cplusplus)
-size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, 
size_t *outbytesleft);
+ #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
-extern size_t iconv(iconv_t cd, const char * *inbuf, size_t *inbytesleft, char 
* *outbuf, size_t *outbytesleft);
+
 int main()
 {
   return 1;

Reply via email to