I'm trying to migrate to 0.7, and failing - I was using
unicode::general_category::Cc, but since updating I cannot seem to
find it in the docs (may very well be user error), and linking fails.
Any hint's on what I should do instead?
The offending code is
if unicode::general_category::Cc(astr.char_at(0)) {
...
}
And the output from rustc:
--------------
> rustc generate_encoding.rs
error: linking with `cc` failed with code 1
note: cc arguments: -L/usr/local/lib/rustc/x86_64-apple-darwin/lib
-m64 -o generate_encoding generate_encoding.o
-L/usr/local/lib/rustc/x86_64-apple-darwin/lib
-lstd-6c65cf4b443341b1-0.7 -Wl,-no_compact_unwind -lmorestack -lrustrt
-Wl,-rpath,@executable_path/../../../../usr/local/lib/rustc/x86_64-apple-darwin/lib
-Wl,-rpath,/usr/local/lib/rustc/x86_64-apple-darwin/lib
note: Undefined symbols for architecture x86_64:
"unicode::general_category::Cc::_236d8020bf63f514::_0$x2e7", referenced from:
get_charmap::anon::expr_fn_4125 in generate_encoding.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: aborting due to previous error
> rustc --version
rustc 0.7 (e07ae9e 2013-07-07 19:35:00 -0700)
host: x86_64-apple-darwin
--
/f
I reject your reality and substitute my own.
http://courteous.ly/yp3Zgd
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev