Skip to content

gcc/mingw "No such file or directory" error #16

@haltcase

Description

@haltcase

I'm unable to compile on Windows 10 & Ubuntu 14.04 — on both systems I get this error on compilation:

# windows
> nim c examples/toy.nim
error: ..\res\resources.o: No such file or directory

# linux
$ nim c --os:windows --cpu:amd64 examples/toy.nim
error: ..\res\resources.o: No such file or directory

On linux I added this to examples/nim.cfg:

amd64.windows.gcc.path = "/usr/bin"
amd64.windows.gcc.exe = "x86_64-w64-mingw32-gcc"
amd64.windows.gcc.linkerexe = "x86_64-w64-mingw32-gcc"

My goal is to compile for Windows from both Windows & Linux so I'm using mingw on both. I've used the same toolchain with nigui successfully.

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