sandwall fails to compile with error:
... 562 | NIM_STATIC_ASSERT(sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8, "Pointer size mismatch between Nim and C/C++ backend. You probably need to setup the backend compiler for target CPU.");
I installed nim using choosenim, my platform is Windows amd64.
test.exe compiles and runs fine
PS D:> gcc --version
gcc.exe (MinGW-W64 x86_64-posix-seh, built by Brecht Sanders) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
PS D:> nim --version
Nim Compiler Version 2.2.12 [Windows: amd64]
Compiled at 2026-09-08
Copyright (c) 2006-2026 by Andreas Rumpf
I can compile sandwall package separately, but threecode build fails due to above error.
I had to pass two flags to the compiler to build successfully:
nimble install --verbose '--passNim:--cpu:amd64' '--passNim:--cc:gcc'
sandwall fails to compile with error:
... 562 | NIM_STATIC_ASSERT(sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8, "Pointer size mismatch between Nim and C/C++ backend. You probably need to setup the backend compiler for target CPU.");I installed nim using choosenim, my platform is Windows amd64.
test.exe compiles and runs fine
PS D:> gcc --version
gcc.exe (MinGW-W64 x86_64-posix-seh, built by Brecht Sanders) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
PS D:> nim --version
Nim Compiler Version 2.2.12 [Windows: amd64]
Compiled at 2026-09-08
Copyright (c) 2006-2026 by Andreas Rumpf
I can compile sandwall package separately, but threecode build fails due to above error.
I had to pass two flags to the compiler to build successfully:
nimble install --verbose '--passNim:--cpu:amd64' '--passNim:--cc:gcc'