Is there a starter project or a Makefile?

When I try to compile a source file without linking, I get the following
error

amitava:learn amitava$ rustc -g -c shape.rs
shape.rs:1:0: 1:0 error: main function not found
shape.rs:1 class shape {
           ^
error: aborting due to previous errors

How do I compile several source files to obj files and then link them
together into an executable?

Thanks & Regards,
Amitava Shee
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to