Skip to content

rustc.exe doesn't link helloworld.rs #1604

Closed
@ssylvan

Description

@ssylvan

Here's the error:

C:\Users\Sebastian\Documents\rust>rustc helloworld.rs
error: linking with gcc failed with code 1
note: gcc arguments: -LC:/Program Files (x86)/Rust/bin/rustc/i686-pc-mingw32/bin
-m32 -o ./helloworld ./helloworld.o -LC:/Program Files (x86)/Rust/bin/rustc/i68
6-pc-mingw32/bin -lcore-14bd852465126fe7-0.1 -LC:/Program Files (x86)/Rust/bin/r
ustc/i686-pc-mingw32/bin -lstd-79ca5fac56b63fde-0.1 -lm -lrustrt -lmorestack
note: gcc: error: Files: No such file or directory
gcc: error: (x86)/Rust/bin/rustc/i686-pc-mingw32/bin: No such file or directory
gcc: error: Files: No such file or directory
gcc: error: (x86)/Rust/bin/rustc/i686-pc-mingw32/bin: No such file or directory
gcc: error: Files: No such file or directory
gcc: error: (x86)/Rust/bin/rustc/i686-pc-mingw32/bin: No such file or directory

error: aborting due to previous errors

Looks like it needs some quotes around those paths to deal with spaces.

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