lua-users home
lua-l archive

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

When compiling with C++

E:\vc6\VC98\INCLUDE\math.h(514) : error C2894: templates cannot be declared to h
ave 'C' linkage

The templates in math.h cannot be wrapped with extern C

This problem can be avoided by including math.h before the lua includes.

However it begs the question of whether the math.h include in
luaconf.h is good thing.