| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <00aa01c27f40$b6be8950$750ba8c0@tempo7> |
| From: | "Xavier Pianet" <xavier DOT pianet AT lusis DOT fr> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | conflicting types for `typedef struct mbstate_t`(was link troubles with wcslen) |
| Date: | Tue, 29 Oct 2002 12:45:39 +0100 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4807.1700 |
Hi there It seems there is a pb in some include files in cygwin1.3.13/1.3.14+gcc3.2 1) first of all /usr/include/wchar.h lacks of _BEGIN_STD_C ... _END_STD_C in function declarations. (same goes for wctypes.h) adding them solved the link problem i had with 'wcslen' in previous post (thanks to Shankar for the pointer) 2) including <cwchar> and <wchar.h> generates a conflicting type for struct mbstate_t because it is defined both in <sys/_types.h> included from <wchar.h> and <cwchar> I found a way to solve thoses pbs but i'm not sure this is the right way: added the _BEGIN_STD_C / _END_STD_C in wchar.h and wctypes.h modified /usr/include/c++/3.2/i686-pc-cygwin/bits/c++config.h the following way: // line 115 added #define _GLIBCPP_HAVE_MBSTATE_T 1 // line 824 added #define _GLIBCPP_HAVE_WCHAR_H 1 // line 828 added #define _GLIBCPP_HAVE_WCTYPE_H 1 there is one more flag i didn't set but still wonder whether or not i should do it (line 114) // Define if code specialized for wchar_t should be used. /* #undef _GLIBCPP_USE_WCHAR_T */ System used : /home> uname -a CYGWIN_NT-5.0 TEMPO7 1.3.13(0.62/3/2) 2002-10-13 23:15 i686 unknown (same pbs with a 1.3.14-1) /home> gcc -v Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs Configured with: /netrel/src/gcc-3.2-1/configure --enable-languages=c,c++,f77,ja va --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls -- with out-included-gettext --enable-interpreter --disable-sjlj-exceptions --disabl e-ve rsion-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i68 6-pc -cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/ usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libe xecd ir=/usr/sbin Thread model: posix gcc version 3.2 20020818 (prerelease) Xavier -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |