In fact, I am using https://khchen.github.io/wNim/ with my nim 64 bits. All demos compile and run without problem
In some of the demo files, there is a line
{.passL: "wnim.res" .}
which use a 32,468 bytes wnim.res
But I found that no matter I use GoRc or ResourceHacker, the following wNim.rc file( which actually comes in wNim too)
1000 ICON "images\\wNim.ico"
can produce wnim.res file with different size
for example
GoRC.exe /r /machine X64 wNim.rc
creates a 32,222 bytes wNim.res
But when I try to compile the wNim's demo with the new wNim.res, I get
Hint: [Link]
wnim.res: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status
Error: execution of an external program failed: 'gcc.exe -mwindows -o R:\a\main.exe C:\Users\USER\.nimble\pkgs\winim-2.5.1\winim\inc\..\lib\wini...
C:\Users\USER\nimcache\main_r\mydata.c.o wnim.res '
any help? thanks
finally I found that wNim.res is actually obj file which can be read by ld of GCC, not res file
we can make it by
wnim.rc wnim.o
cp wnim.o wnim.res