rttrorg / rttr

C++ Reflection Library
https://www.rttr.org
MIT License
3.11k stars 430 forks source link

RTTR between static libraries? #324

Open crjc opened 2 years ago

crjc commented 2 years ago

Is it possible to define a class and RTTR Registration within a static library and use within another library?

RTTR_PLUGIN_REGISTRATION seems to only be for dynamic libraries?

freestriker commented 1 year ago

Hi @crjc , I recently had a problem with creating objects in static link library, and RTTR_PLUGIN_REGISTRATION is the same as RTTR_REGISTRATION in msvc. May I ask how do you solve this problem? Do you have any solutions for reference? Thank you very much.