-
Notifications
You must be signed in to change notification settings - Fork 24
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
Unable to compile Bouncing Ball example #26
Comments
Hi @jamaas. The name of the trait in the |
Thanks @tomtuamnuq. I thought the same but this is an exact copy of example code from Github. I'll do some digging and see what I find, and report back. |
Thanks again @tomtuamnuq. That was indeed the problem and must have been done by me because original code does not have it. Ooops. Now I am getting this out of scope error .... Suggestions on how to fix this? -- mode: compilation; default-directory: "~/research/rust/renevey/ode-solvers-main/" -- cargo build error[E0782]: trait objects must include the Some errors have detailed explanations: E0412, E0782. Compilation exited abnormally with code 101 at Tue Feb 6 15:03:25 |
Hi @jamaas, For the first error, as suggested by the compiler, you need to bring Vector3 in scope. You can do that by importing it with For the second error,
Lastly, your logs suggest that you are editing I hope that helps. |
Hi @srenevey et. al, sincerely appreciate your help and particularly your time. I downloaded a fresh un-hacked copy and then attempted to use Cargo, from within Emacs, on Linux to build and then test the boucing_ball.rs file. I'll attach the output I got from both the build and test operations. It appears to compile but does not appear to produce an executable file that I can then run. In my ignorance, am I doing something wrong? Should it not produce a standalone executable file? Do I need to change or adjust my base Rust compiler setup? Why do I get so many errors when running a test? Thanks a bunch. J |
Relative noob to Rust here, but lots of experience with other languages. My goal is to build a simple generic two-pool compartmental model using Rust and ode's. I found your ode models and they look perfect except there is something wrong with my Rust setup. When I attempt to compile the bouncing ball example I get these errors. Any/all suggestions most welcome, genuine thanks for your patience.
:jambounc $ cargo build
Compiling jambounc v0.1.0 (/home/jamaas/research/rust/renevey/ode-solvers-main/jambounc)
error[E0405]: cannot find trait
Systemo
in crateode_solvers
--> jambounc/src/main.rs:72:19
|
72 | impl ode_solvers::Systemo<Time, State> for BouncingBall {
| ^^^^^^^ help: a trait with a similar name exists:
System
|
::: /home/jamaas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ode_solvers-0.4.0/src/dop_shared.rs:25:1
|
25 | pub trait System<T, V>
| ---------------------- similarly named trait
System
defined hereThe text was updated successfully, but these errors were encountered: