Skip to content
Snippets Groups Projects
Commit 43364656 authored by Kai Bleeke's avatar Kai Bleeke
Browse files

use link-lib syntax for stdc++

parent b1eef9f7
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ fn main() {
println!("cargo:rustc-link-search=native={}", dst.display());
println!("cargo:rustc-link-lib=static=blockchain");
// IMPROTANT: If we want to use C++, we also need to link the C++ stdlib.
println!("cargo:rustc-flags=-ldylib=stdc++");
println!("cargo:rustc-link-lib=dylib=stdc++");
// Use rust-bindgen to generate a "header" for Rust from the C header.
// Of couse Rust does not have any headers, so this will be a normal Rust file containing an extern "C" {} block.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment