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

rust executable complains about multiple input filenames #3632

Closed
mqudsi opened this issue May 26, 2018 · 2 comments
Closed

rust executable complains about multiple input filenames #3632

mqudsi opened this issue May 26, 2018 · 2 comments

Comments

@mqudsi
Copy link

@mqudsi mqudsi commented May 26, 2018

logmailer2 = executable('logmailer2', ['logmailer/src/logmailer.rs',  'logmailer/src/main.rs',  'logmailer/src/ses_mailer.rs'])

this generates the following error:

mqudsi@ZBook /m/c/U/M/g/easyre> ninja -C build
ninja: Entering directory `build'
[4/7] Compiling Rust source ../logmailer/src/logmailer.rs ../logmailer/src/main.rs ../logmailer/src/ses_mailer.rs.
FAILED: rustc --crate-type bin --crate-name logmailer2 -C debuginfo=2 --emit dep-info=logmailer2.d --emit link -o logmailer2 ../logmailer/src/logmailer.rs ../logmailer/src/main.rs ../logmailer/src/ses_mailer.rs
error: multiple input filenames provided
@jpakkane
Copy link
Member

@jpakkane jpakkane commented May 26, 2018

Is there a simple example with a multi-file Rust program (or lib) which is preferably standalone or at most depends on only a few crates so I can this fixed?

@mqudsi
Copy link
Author

@mqudsi mqudsi commented May 26, 2018

Sure, I just threw this together: https://git.neosmart.net/mqudsi/meson-rust

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

Successfully merging a pull request may close this issue.

None yet
2 participants