Also worth considering - compiling nim to C source code, which you then build
later under linux.
Also if cross-compiling binaries to linux (eg: docker), make sure you use the
exact same glibc/etc, otherwise dynamic lib link failures when you copy the
binary over.
(this is one thing that Go lan
The easiest solution I've found for building for Linux on WIndows is using
Docker. You can use one of the [official Nim
Docker](https://hub.docker.com/r/nimlang/nim/) images to compile your program
and create a Linux executable.
> you'll need a cross compiling toolchain. afaik mingw can't compile from
> windows to linux, although it works the other way around.
Yes, I found only cross-compilers for Linux. No luck with MinGW it seems ?
you'll need a cross compiling toolchain. afaik mingw can't compile from windows
to linux, although it works the other way around.
You answer your own question. Get full mingw I think.
Recently I tried to build Linux distributive for my recent project, yet found
compiler stuck on following error:
\nimcache\stdlib_system.c:11:22: fatal error: sys/mman.h: No such file or
directory #include
Run
Of course it's not available on Windows, yet what should I do