[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnu-libiconv] Can't build libiconv-1.11 on Win32 using VC++ 6.0
From: |
Bruno Haible |
Subject: |
Re: [bug-gnu-libiconv] Can't build libiconv-1.11 on Win32 using VC++ 6.0 |
Date: |
Wed, 4 Jul 2007 23:38:46 +0200 |
User-agent: |
KMail/1.5.4 |
Hello,
> OK, I did that but then got another error:
>
> unsetenv.c(30) : fatal error C1083: Cannot open include file:
> 'unistd.h': No such file or directory
>
> So I deleted the #include <unistd.h> line from unsetenv.c and tried
> again, but got yet another error:
>
> iconv_no_i18n.c
> ..\srclib\unitypes.h(23) : fatal error C1083: Cannot open include file:
> 'stdint.h': No such file or directory
>
> So I deleted the #include <stdint.h> line from unitypes.h and tried
> again, but then got lots of errors:
>
> iconv_no_i18n.c
> ..\srclib\unitypes.h(23) : error C2061: syntax error : identifier 'ucs4_t'
> ..\srclib\unitypes.h(23) : error C2059: syntax error : ';'
> ..\srclib\uniwidth.h(43) : error C2146: syntax error : missing ')'
> before identifier 'uc'
> ..\srclib\uniwidth.h(43) : error C2061: syntax error : identifier 'uc'
> ..\srclib\uniwidth.h(43) : error C2059: syntax error : ';'
> ..\srclib\uniwidth.h(43) : error C2059: syntax error : ','
> ..\srclib\uniwidth.h(43) : error C2059: syntax error : ')'
> [...]
>
> The #include <stdint.h> line in unitypes.h was commented "Get uint8_t,
> uint16_t, uint32_t", but I can't see any MS VC++ 6.0 header file that
> contains these types, so there is no obvious replacement for stdint.h
> either.
Yes, Microsoft apparently ignores the ISO C 99 standard, by not providing
<stdbool.h> and <stdint.h> header files.
You can write a substitute stdint.h yourself; the comments tell you what
libiconv expects from it. The spec is at
http://www.opengroup.org/susv3/basedefs/stdint.h.html
Or you can use mingw instead of MSVC.
Or you can go back to libiconv-1.9.2, which did not require an <stdint.h>.
Bruno