gccrs icon indicating copy to clipboard operation
gccrs copied to clipboard

Unimplemented macro println

Open Zopolis4 opened this issue 3 years ago • 1 comments

I tried this code (error encountered in the wild here), but I have reduced it to a testcase.:

fn main()
{
  println!("salutate");
}

I expected to see this happen: The code to compile and run, printing salutate. This code works successfully with rustc greetings.rs

Instead, this happened:

greetings.rs:3:3: error: unknown macro 2: [println]
    3 |   println!("salutate");
      |   ^

Meta

I was using version d155a54785cb7b40ada7ae748997d717a4b27ab9.

Zopolis4 avatar Jul 15 '22 11:07 Zopolis4

println! is a macro from the std library.

Since Rust GCC currently can't compile either core or std library. This is currently out of the question.

liushuyu avatar Jul 17 '22 05:07 liushuyu