lua-users home
lua-l archive

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


On 07/29/2011 07:51 AM, KHMan wrote:

WinXP, MinGW gcc 4.5.2 (TDM)

In luaconf.h, LUA_WIN does not define LUA_USE_LONGLONG. So in lstrlib.c,
LUA_INTFRM uses 'l'/long instead of 'll'/long long.

IIRC, 'll' does not work for msvcrt.dll.


For what it's worth, Microsoft added "long long" and "%lld" support in Visual C++ 2005 and msvcr80.dll.

It is possible for gcc to link against other versions, but because of the startup code you have to use -nodefaultlibs and manually list the standard libraries. Otherwise you end up importing from both msvcr80.dll and msvcrt.dll.

The downside is you have to embed manifests and distribute the runtime with the application.

--
- tom
telliamed@whoopdedo.org