From: Earnie <ea...@us...> - 2011-04-28 18:20:43
|
Jim Bell wrote: > I'm building boost with these flags: > > WINVER=0x0800 > > __MSVCRT_VERSION__=0x0A00 > > > I get: > f:\mingw\20110316\bin\../lib/gcc/mingw32/4.5.2/../../../../include/wchar.h:376:16: > error: 'FILENAME_MAX' was not declared in this scope > f:\mingw\20110316\bin\../lib/gcc/mingw32/4.5.2/../../../../include/wchar.h:385:16: > error: 'FILENAME_MAX' was not declared in this scope > f:\mingw\20110316\bin\../lib/gcc/mingw32/4.5.2/../../../../include/wchar.h:394:16: > error: 'FILENAME_MAX' was not declared in this scope > > I can throw FILENAME_MAX=260 into the command-line, but thought you'd > all like to know about it. (Or that *I* should know if I'm missing > something.) Definitely a bug in wchar.h. http://www.mingw.org/Reporting_Bugs You can also, #include <stdio.h> to work around the problem, but the other definitions use 260 directly in the declarations and not FILENAME_MAX. -- Earnie -- http://www.for-my-kids.com |