lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Compiling Lua 5.0 under Windows with the mingw compiler (gcc 3.2) produces a
small bug in the stand-alone lua interpreter: messages directed to the
stderr (such as the copyright message, for instance) are deferred!

A quick fix is to add fflush(stderr) at the end of the l_message() function
(src/lua/lua.c:116), don't know if anyone has a better solution.

 This does not happen with other Windows compilers, I've tried OpenWatcom,
Lcc-win32, Borland C++ 5.5, Microsoft VC++ 6.0 and Digital Mars C++ under
WinXP and Win98 (not in all the combinations!!).

 Just in case it might be useful!

 R.D.