Closed Ghy0202 closed 1 year ago
It seems another problem, when I tried the stdlib path
First off - mrustc isn't for beginners, it has had nowhere near the level of usablility polish rustc/cargo have.
With that said - you need to build the standard library first - use make LIBS
in the mrustc source folder to build the 1.29 standard library to output
. Then point mrustc
at that using -L path/to/output
First off - mrustc isn't for beginners, it has had nowhere near the level of usablility polish rustc/cargo have.
With that said - you need to build the standard library first - use
make LIBS
in the mrustc source folder to build the 1.29 standard library tooutput
. Then pointmrustc
at that using-L path/to/output
Hhh, thank u! I‘ve solved this problem after using -L path/to/output
😉
I am a beginner in Rust, and I'm trying to write code using mrustc. However, it seems that the compiler is unable to locate the core and std paths. I am wondering if mrustc supports these two libraries and how to set the default paths via the command line. I tried this:
and the code.rs looks like:
The error:
I would be very happy if this question could be answered. (Perhaps this is a very basic question)🥲