Following code failed to compile. The reason is that reflect-cpp is not header-only since v0.13.0.
#include <rfl.hpp>
#include <rfl/Generic.hpp>
int main() { rfl::Generic b; }
error: /usr/bin/ld: build/.objs/tttm/linux/x86_64/releasedbg/main.cpp.o: in function `main':
/volume/workspace/xron-test-scripts/apps/main.cpp:4: undefined reference to `rfl::Generic::Generic()'
/usr/bin/ld: /volume/workspace/xron-test-scripts/apps/main.cpp:4: undefined reference to `rfl::Generic::~Generic()'
collect2: error: ld returned 1 exit status
error: /usr/bin/ld: build/.objs/tttm/linux/x86_64/releasedbg/main.cpp.o: in function `main':
/volume/workspace/xron-test-scripts/apps/main.cpp:4: undefined reference to `rfl::Generic::Generic()'
/usr/bin/ld: /volume/workspace/xron-test-scripts/apps/main.cpp:4: undefined reference to `rfl::Generic::~Generic()'
collect2: error: ld returned 1 exit status
Xmake Version
v2.9.4+HEAD.e85b001
Operating System Version and Architecture
Ubuntu 22.04.4 LTS
Describe Bug
Following code failed to compile. The reason is that reflect-cpp is not header-only since v0.13.0.
Expected Behavior
pass compile
Project Configuration
Additional Information and Error Logs