Hi Amitava I've attached a simple template from a project I'm working on. I've got a dependency "rust-csv" which I'm not building with cargo, but from a git submodule.
I use stamp files for the libraries, as the output files are versioned and thus the filename produced changes. Hopefully this is of use. Grahame On 10 April 2012 05:26, Amitava Shee <[email protected]> wrote: > 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 > >
Makefile
Description: Binary data
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
