It seems like after decoupling of ic0
crate from cdk-rs
crate something went wrong.
I still can use cargo build
for my projects, but not cargo test
:
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/tmp/rustcAgGAPp/symbols.o" "/home/alexander/IdeaProjects/ic-stable-memory/target/debug/deps/ic_stable_memory-af206a0cde78a87c.10t3jbqh57ut461e.rcgu.o" "/home/alexander/IdeaProjects/ic-stable-memory/target/debug/deps/ic_stable_memory-af206a0cde78a87c.11543p07sull3p31.rcgu.o" "/home/alexander/IdeaProjects/ic-stable-memory/target/debug/deps/ic_stable_memory-af206a0cde78a87c.130geevnzwplkrxq.rcgu.o" "/home/alexander/IdeaProjects/ic-stable-memory/target/debug/deps/ic_stable_memory-...
= note: /usr/bin/ld: /home/alexander/IdeaProjects/ic-stable-memory/target/debug/deps/libic_cdk-2146a3f3358a2c93.rlib(ic_cdk-2146a3f3358a2c93.ic_cdk.5f9620fa-cgu.8.rcgu.o): in function `ic_cdk::api::trap':
/home/alexander/.cargo/registry/src/github.com-1ecc6299db9ec823/ic-cdk-0.6.5/src/api/mod.rs:20: undefined reference to `trap'
collect2: error: ld returned 1 exit status
= help: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)
How to fix?