Skip to content

Cross-compiling on Linux for Windows gives two linker errors #9

@apahl

Description

@apahl

Araq, compiling on Linux for Linux now works, this is awesome!!

Should cross-compiling to Windows also work?
Because, when I cross-compile on Linux for Windows using this line:
nim --os:windows --cpu:amd64 --gcc.exe:x86_64-w64-mingw32-gcc --gcc.linkerexe:x86_64-w64-mingw32-gcc --app:gui c controllgallery2.nim

I get this linking error:

/usr/bin/x86_64-w64-mingw32-ld: cannot find -lUxTheme
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lUsp10

Do you have an idea how to resolve this?

Also, there is this error complaining about the backslashes in the path to resources.o when cross-compiling on Linux (I have changed them to forward slashes for now).

Many thanks for your help again, this is really highly appreciated.

Kind regards,
Axel

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions