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

Comments

Projects
None yet
2 participants
@mqudsi
Copy link

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

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Author

commented May 26, 2018

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

jpakkane added a commit that referenced this issue Jun 4, 2018

jpakkane added a commit that referenced this issue Jun 6, 2018

@jpakkane jpakkane closed this in cd63ca9 Jun 17, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.