OpenGL-1.1.0 compile problem in cygwin-1.7

Brian Dessent brian@dessent.net
Mon Dec 8 22:53:00 GMT 2008


"Phan, Linh H" wrote:

> /usr/include/sys/_types.h:63:20: error: stddef.h: No such file or directory
> In file included from /usr/lib/../include/w32api/glui.h:29,
>                  from example1.cpp:20:
> /usr/include/stdio.h:37:20: error: stdarg.h: No such file or directory
> In file included from /usr/include/sys/reent.h:14,
>                  from /usr/include/string.h:11,
>                  from example1.cpp:18:
> /usr/include/sys/_types.h:72: error: 'wint_t' does not name a type
> In file included from example1.cpp:18:
> /usr/include/string.h:22: error: 'size_t' has not been declared

stddef.h and stdarg.h aren't part of Cygwin and they don't live in
/usr/include.  They are provided by the compiler and they should be
found in the compiler's private include directory,
$libdir/gcc/$target/$version/include.  If it's not found you have an
installation problem with gcc.  Try the following to verify:

$ echo "#include <stdarg.h>" | gcc -x c - -H -E -o /dev/null
. /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/stdarg.h

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/



More information about the Cygwin-xfree mailing list