Skip to content

rust executable complains about multiple input filenames #3632

Closed

Description

@mqudsi
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

Activity

  1. jpakkane commented on May 26, 2018

    @jpakkane
    Member

    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?

  2. mqudsi commented on May 26, 2018

    @mqudsi
    Author

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

  3. added 2 commits that reference this issue on Jun 4, 2018
    f632f8a
    69fe888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions