You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've attempted to port an older version of rfl to build as a module in this commit. The problem is that some functions are marked static, and static functions are not exported from modules. You need to either replace it manually, like I did, or maybe rfl devs should replace static functions in headers with inline ones...
About the GCC issue - no idea. Try to fix Clang, maybe GCC will start working too :)
With the adjustment, it works for this small example.
There might be other places, where a change is needed, for a bigger project, using more features of reflect-cpp.
Been trying to move BooleanColumnView.hpp, FloatColumnOrFloatColumnView.hpp and StringColumnOrStringColumnView.hpp into a module.
Sample code: modules.tar.gz
Compiling with Clang 18.1.8 gives:
clang.log
This is related to
rfl::json::write(floatColumnOrFloatColumnView);
Without this, it compiles and runs.
Compiling with GCC 14.2.0 gives:
gcc.log
This is not specific to
rfl::Literal
, I also see it e.g. withrfl::Ref
Not sure, if it is something missing in GCC, or something fixable in rfl.
The text was updated successfully, but these errors were encountered: