[lkml]   [1996]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectinclude file error ?
I hope this is the right place to ask :)

Is it possible that the following definition ...

#ifndef _WCHAR_T
typedef unsigned long wchar_t;
#endif /* _WCHAR_T */

... is missing from include/stddef.h ?

Without this definition I get the error below
when compiling ncurses (not specific to ncurses though).
In stdlib.h it says somewhere ...
/* Get size_t, wchar_t and NULL from <stddef.h>. */
#define __need_size_t
#define __need_wchar_t
#define __need_NULL
#include <stddef.h>

...but wchar_t is not in stddef.h ...the error...

In file included from ./comp_hash.c:36:
/usr/include/stdlib.h:333: parse error before *'
/usr/include/stdlib.h:336: parse error before wchar_t'
/usr/include/stdlib.h: In function mblen':
/usr/include/stdlib.h:340: wchar_t' undeclared (first use this function)
/usr/include/stdlib.h:340: (Each undeclared identifier is reported only once
/usr/include/stdlib.h:340: for each function it appears in.)
/usr/include/stdlib.h:340: parse error before )'
/usr/include/stdlib.h: At top level:
/usr/include/stdlib.h:345: parse error before *'
/usr/include/stdlib.h:347: parse error before *'
make[1]: *** [make_hash] Error 1
make[1]: Leaving directory /home/users/root2/src/ncurses-1.9.9e/ncurses'
make: *** [all] Error 2

I hope someone can answer this ...

- Sebastian Benoit Save the planet !
- less is more !

 \ /
  Last update: 2005-03-22 13:37    [W:0.027 / U:4.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site