Hello,

I just switched over the
rust-pcre<https://github.com/cadencemarseille/rust-pcre>project's
directory structure to a rustpkg workspace (as documented at
http://static.rust-lang.org/doc/master/rustpkg.html).  Now I am trying to
run a simple Rust program using the pcre module, but I am experiencing some
trouble.

Both:

extern mod pcre;

and:

extern mod pcre = "github.com/cadencemarseille/rust-pcre";

result in the error message:
error: can't find crate for `pcre`

To compile, I need to supply an -L flag to the full rustpkg library output
folder like so:

rustc -L ~/.rust/pcre/lib/x86_64-apple-darwin -o pcredemo~ pcredemo.rs

How do I set up my local dev env so that this "just works"?

Cadence
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to