ThePhD / sol2

Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
http://sol2.rtfd.io/
MIT License
4.18k stars 515 forks source link

Trouble porting overloaded template functions into LUA #1528

Closed michellelor closed 1 year ago

michellelor commented 1 year ago

I am using the library entt for ECS.

This is the function that I want to port into LUA: Screenshot 2023-09-18 183213

This is what I had done: Screenshot 2023-09-18 183327

This is the error: Screenshot 2023-09-18 183213

May i know how can i go about fixing this? Thank you ! :) If anymore info is needed, let me know

skaarj1989 commented 1 year ago

Your problem is not related to sol2/Lua. https://stackoverflow.com/questions/8225078/how-to-set-compile-flag-bigobj-in-visual-studio

If you use CMake:

target_compile_options(TargetName PRIVATE /bigobj)
michellelor commented 1 year ago

Thank you!