japaric-archived / linalg.rs

[INACTIVE]
Apache License 2.0
29 stars 1 forks source link

Compilation error: `Cols` does not name a structure #78

Open gyscos opened 9 years ago

gyscos commented 9 years ago

Using rust nightly, when running cargo build on current master branch, I get:

src/cols.rs:8:9: 8:13 error: `Cols` does not name a structure [E0071]
src/cols.rs:8         Cols {
                      ^~~~
src/cols.rs:8:9: 8:13 help: run `rustc --explain E0071` to see a detailed explanation
src/rows.rs:8:9: 8:13 error: `Rows` does not name a structure [E0071]
src/rows.rs:8         Rows {
                      ^~~~
src/rows.rs:8:9: 8:13 help: run `rustc --explain E0071` to see a detailed explanation

On rust stable it also doesn't compile, as approx.rs uses #![feature(plugin)].

Concerning the ng branch, it also doesn't compile on rust nightly:

src/nn/network.rs:200:15: 200:16 error: expected `]`, found `,`
src/nn/network.rs:200         a_2[.., 1..] = a_1 * theta_1.t();
                                    ^
Could not compile `linalg`.

So... what's the current solution? Thanks!