No, actually. LUALIB_API is defined as being the same as LUA_API by default and LUA_API is either defined to be 'extern' or '__declspec(dllimport)' (or '__declspec(dllexport)' when building lua itself. This is orthogonal to whether lua or lua_yajl is compiled as C++ or C.