Hello! This is my first post here, so please bear with me if anything’s out of line, and I’d appreciate any advice.
I’m currently working on trying to integrate a Rust library into a C++ project using the CMake system. Everything seems to work quite well when I’m building this project s.t. that library is compiled and linked as a dynamic library
.so. However, when I try to switch from using a dynamic library to a static one
.a, I end up being unable to compile it, due to what looks like some sort of issue using the
println!() macro. I’m interested in eventually being able cross-compile and move the resulting binaries to a different machine, so I think that compiling with a static lib would be the best way to go.
I’ve put together a GitHub repository with my code and a README explaining the issue in depth at the following link (and would be happy to post the text of the README here if that would be helpful). Any help would be very much appreciated!