-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile error in piet-direct2d #337
Comments
Are you sure you're running |
this is the answer when I use rustup show : $ rustup show installed toolchainsstable-x86_64-pc-windows-gnu (default) active toolchainstable-x86_64-pc-windows-gnu (default) |
you can find my example with this link : https://gitlab.com/aniki02/piet-crossplatform-example |
You were right. Rustc version was the problem. With rustup show, the rustc version was 1.47.0 but with rustc --version it was 1.43.0. Thank you, I close this issue |
Hello.
Rustc is update to 1.47.0. I am using Windows 7 and my default toolchain is stable-x86_64-pc-windows-gnu.
I wanted to test cross platform with a little example. No worries when I compil in linux or macos, but in windows there is that compil error.
br C:\Users\Documents\projects\piet-crossplatform-example
$ cargo update
Updating crates.io index
br C:\Users\Documents\projects\piet-crossplatform-example
$ cargo clean
br C:\Users\Documents\projects\piet-crossplatform-example
$ cargo build
Compiling winapi-x86_64-pc-windows-gnu v0.4.0
Compiling winapi v0.3.9
Compiling libc v0.2.79
Compiling byteorder v1.3.4
Compiling bitflags v1.2.1
Compiling arrayvec v0.5.1
Compiling crc32fast v1.2.0
Compiling adler32 v1.2.0
Compiling cfg-if v0.1.10
Compiling lazy_static v1.4.0
Compiling utf16_lit v1.0.1
Compiling associative-cache v1.0.1
Compiling miniz_oxide v0.3.7
Compiling kurbo v0.6.3
Compiling piet v0.2.0-pre5
Compiling deflate v0.8.6
Compiling png v0.16.7
Compiling wio v0.2.2
Compiling dwrote v0.11.0
Compiling piet-direct2d v0.2.0-pre5
error[E0658]: procedural macros cannot be expanded to expressions
--> C:\Users.cargo\registry\src\github.com-1ecc6299db9ec823\piet-direct2d-0.2.0-pre5\src\dwrite.rs:39:32
|
39 | const DEFAULT_LOCALE: &[u16] = utf16_lit::utf16_null!("en-US");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #54727 rust-lang/rust#54727 for more information
error: aborting due to previous error
For more information about this error, try
rustc --explain E0658
.error: could not compile
piet-direct2d
.To learn more, run the command again with --verbose.
The text was updated successfully, but these errors were encountered: