msvcrt vs std incl

Martin Wilck Martin.Wilck at
Tue Nov 19 09:51:17 CST 2002

Am Die, 2002-11-19 um 15.59 schrieb Dimitrie O. Paun:

> Nevertheless, they solve only part of the problem:
> [dimi at dimi wine]$ gcc -fshort-wchar -I /home/dimi/dev/wine/wine.src/include/msvcrt -I /home/dimi/dev/wine/wine.src/include test.c
> test.c: In function `main':
> test.c:8: `wchar_t' undeclared (first use in this function)
> test.c:8: (Each undeclared identifier is reported only once
> test.c:8: for each function it appears in.)
> This shouldn't have, should it?


The winemaker-generated build line would look somthing like 

gcc -c -g -O2 -fPIC  -D_REENTRANT -DWINELIB  -I/home/martin/exp/include/wine/msvcrt  -I.  -I/home/martin/exp/include/wine test.c

Using this line and WCHAR instead of wchar_t, I'm fine. It prints "sizeof (WCHAR) = 2".


Martin Wilck                Phone: +49 5251 8 15113
Fujitsu Siemens Computers   Fax:   +49 5251 8 20409
Heinz-Nixdorf-Ring 1	    mailto:Martin.Wilck at
D-33106 Paderborn 

More information about the wine-devel mailing list