billyquith / ponder

C++ reflection library with Lua binding, and JSON and XML serialisation.
http://billyquith.github.io/ponder/
Other
648 stars 95 forks source link

Building Error #122

Closed windowsbabu closed 4 years ago

windowsbabu commented 4 years ago

Hi,

I was building the library on windows through Minwg64, I followed the build instructions as you given, but I got following error,

[ 98%] Building CXX object test/lua/CMakeFiles/luatest.dir/main.cpp.obj In file included from C:/Users/DHANYA SHREE/Desktop/ponder1/ponder/test/lua/main.cpp:33: C:/Users/DHANYA SHREE/Desktop/ponder1/ponder/include/ponder/uses/lua.hpp:111:17: error: function 'void ponder::lua::expose(lua_State, ponder::IdRef)' definition is marked dllimport 111 | PONDER_API void expose(lua_State L, const IdRef exposeName) | ^~ In file included from C:/Users/DHANYA SHREE/Desktop/ponder1/ponder/test/lua/main.cpp:33: C:/Users/DHANYA SHREE/Desktop/ponder1/ponder/include/ponder/uses/lua.hpp:404:6: warning: 'void ponder::lua::expose(lua_State, const ponder::Class&, ponder::IdRef)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] 404 | void expose(lua_State L, const Class& cls, const IdRef name) | ^~ C:/Users/DHANYA SHREE/Desktop/ponder1/ponder/include/ponder/uses/lua.hpp:453:6: warning: 'void ponder::lua::expose(lua_State, const ponder::Enum&, ponder::IdRef)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] 453 | void expose(lua_State L, const Enum& enm, const IdRef name) | ^~ C:/Users/DHANYA SHREE/Desktop/ponder1/ponder/include/ponder/uses/lua.hpp:467:5: warning: 'int ponder::lua::pushUserObject(lua_State, const ponder::UserObject&)' redeclared without dllimport attribute after being referenced with dll linkage 467 | int pushUserObject(lua_State L, const UserObject& uobj) | ^~~~~~ C:/Users/DHANYA SHREE/Desktop/ponder1/ponder/include/ponder/uses/lua.hpp:484:6: warning: 'bool ponder::lua::runString(lua_State, const char)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] 484 | bool runString(lua_State L, const char luaCode) | ^~~~~ make[2]: [test/lua/CMakeFiles/luatest.dir/build.make:84: test/lua/CMakeFiles/luatest.dir/main.cpp.obj] Error 1 make[1]: [CMakeFiles/Makefile2:278: test/lua/CMakeFiles/luatest.dir/all] Error 2 make: *** [Makefile:183: all] Error 2

Kindly Help us to Fix this issue,

Regards,

windowsbabu commented 4 years ago

This error has fixed, due to missing lua library above error was created.

Regards,