Skip to content
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

Cargo run/build on Windows 10 fail #6

Closed
Saitodepaula opened this issue Feb 21, 2021 · 2 comments
Closed

Cargo run/build on Windows 10 fail #6

Saitodepaula opened this issue Feb 21, 2021 · 2 comments

Comments

@Saitodepaula
Copy link

Saitodepaula commented Feb 21, 2021

Hi, I'm totally new to Rust (the first contact I'm having with the language is to try to use this sofware), and I'm no professional in anything related to programming, so maybe I'm doing some obvious mistake here.

On Windows 10 64 bit, I've downloaded Rust, installed, downloaded Build Tools for Visual Studio 2019, and, using rustup, I've updated Rust to the nightly build.

When I type Cargo Run or Cargo Build in the directory I've unziped the 1.5.1 files, I've got the folowing:

error[E0658]: attributes on expressions are experimental
   --> src\main.rs:206:17
    |
206 |                 #[cfg(target_os = "windows")]
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable

error: removing an expression is not supported in this position
   --> src\main.rs:206:17
    |
206 |                 #[cfg(target_os = "windows")]
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
error: could not compile `enginesound`

To learn more, run the command again with --verbose.

There are 9 warnings before this, but are all related to never used functions or constants.

@DasEtwas
Copy link
Owner

Really just a lazy oversight of mine. Sorry! Thanks for reaching out :)

DasEtwas added a commit that referenced this issue Feb 21, 2021
- closes #6
@Saitodepaula
Copy link
Author

Thanks! I've been able to build it and run, but now I can't get a GUI. I've opened another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants