that might be the fix
This commit is contained in:
parent
6bc1ab2081
commit
a29ff4e041
@ -49,6 +49,7 @@ impl Builder {
|
|||||||
.file("libcsp/src/csp_debug.c")
|
.file("libcsp/src/csp_debug.c")
|
||||||
.file("libcsp/src/csp_id.c")
|
.file("libcsp/src/csp_id.c")
|
||||||
.file("libcsp/src/csp_iflist.c")
|
.file("libcsp/src/csp_iflist.c")
|
||||||
|
.file("libcsp/src/csp_conn.c")
|
||||||
.file("libcsp/src/csp_init.c")
|
.file("libcsp/src/csp_init.c")
|
||||||
.file("libcsp/src/csp_io.c")
|
.file("libcsp/src/csp_io.c")
|
||||||
.file("libcsp/src/csp_port.c")
|
.file("libcsp/src/csp_port.c")
|
||||||
|
@ -27,7 +27,8 @@ fn main() {
|
|||||||
// Tell cargo to tell rustc to link our `csp` library. Cargo will
|
// Tell cargo to tell rustc to link our `csp` library. Cargo will
|
||||||
// automatically know it must look for a `libcsp.a` file.
|
// automatically know it must look for a `libcsp.a` file.
|
||||||
println!("cargo:rustc-link-lib=csp");
|
println!("cargo:rustc-link-lib=csp");
|
||||||
println!("cargo:rustc-link-search={}/csp", project_dir);
|
println!("cargo:rustc-link-lib=csp");
|
||||||
|
// println!("cargo:rustc-link-search={}/csp", project_dir);
|
||||||
|
|
||||||
let mut csp_builder = Builder::new();
|
let mut csp_builder = Builder::new();
|
||||||
csp_builder.compile();
|
csp_builder.compile();
|
||||||
|
@ -2,6 +2,13 @@
|
|||||||
#![allow(non_camel_case_types)]
|
#![allow(non_camel_case_types)]
|
||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
|
|
||||||
|
// include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
||||||
|
extern "C" {
|
||||||
|
pub fn csp_print_func(fmt: *const ::std::os::raw::c_char, ...);
|
||||||
|
#[doc = " Initialize CSP.\n This will configure basic structures."]
|
||||||
|
pub fn csp_init();
|
||||||
|
}
|
||||||
|
|
||||||
// include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
// include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
||||||
// extern "C" {
|
// extern "C" {
|
||||||
// pub fn csp_print_func(fmt: *const ::std::os::raw::c_char, ...);
|
// pub fn csp_print_func(fmt: *const ::std::os::raw::c_char, ...);
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
// include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
use libcsp_rust::csp_init;
|
||||||
extern "C" {
|
|
||||||
pub fn csp_print_func(fmt: *const ::std::os::raw::c_char, ...);
|
|
||||||
#[doc = " Initialize CSP.\n This will configure basic structures."]
|
|
||||||
pub fn csp_init();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Hello, world!");
|
println!("Hello, world!");
|
||||||
|
Loading…
Reference in New Issue
Block a user