Closed chenlvzhou closed 2 months ago
= note: ld: Undefined symbols: _print_message, referenced from: rustdemo::print_message_cpp::h0a6a34a8e6eaa652 in rustdemo-743f6d5e588be2bf.s1p2zarxq8bsnav.rcgu.o
It seems that there's an undefined symbols in your crate rustdemo
@chenlvzhou Please provide enough code to reproduce your error, otherwise we will not be able to determine how to fix this.
@chenlvzhou what do "cpp_src/sorting.cpp", "cpp_src/print.cpp" contain? and show me the rust code which calling them
resolved
That's good to hear!
Merge multiple cpp files and compile them into one .a file