-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libc::write not found in libc
#55
Comments
Are you building something bare metal? If so, it might make sense to add a feature for providing your own custom output function symbol. |
I have this program #![no_std]
#![feature(start)]
use libc_print::std_name::*;
#[start]
fn main(_argc: isize, _argv: *const *const u8) -> isize {
println!("hello");
0
}
#[panic_handler]
fn panic_handler(_: &core::panic::PanicInfo) -> ! {
unsafe { libc::abort() };
} When I compile with
When I add this fn main() {
println!("cargo:rustc-link-lib=c");
} I just get the missing
Not sure what is up here, whether this is the same bug as above or I'm just doing something dumb. Any help appreciated! |
Ok, figured it out. Was being hit by this open issue in Rust. Adding |
Had the same issue. Downgrading to 1.0 seems to be working for me |
Thanks for the great library.
I am trying it with
cargo build --target thumbv8m.main-none-eabihf
I am having these two compilation errors.
Any ideas?
The text was updated successfully, but these errors were encountered: