Am Die, 2002-11-19 um 15.59 schrieb Dimitrie O. Paun:
Nevertheless, they solve only part of the problem:
[dimi(a)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?
s/wchar_t/WCHAR/g 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 -- Martin Wilck Phone: +49 5251 8 15113 Fujitsu Siemens Computers Fax: +49 5251 8 20409 Heinz-Nixdorf-Ring 1 mailto:Martin.Wilck(a)Fujitsu-Siemens.com D-33106 Paderborn http://www.fujitsu-siemens.com/primergy