[rust-dev] How to build multiple .rs source files?

Amitava Shee amitava.shee at gmail.com
Mon Apr 9 14:26:23 PDT 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20120409/79bef2a7/attachment.html>


More information about the Rust-dev mailing list