Hello, I have this shell script that works on Linux, but not on Windows. 
source: <https://pastebin.com/shDGcTQ7>

sh:
    
    
    rm -f *.so && \
    nim c --app:staticlib --opt:size --noMain  --header -o:libnimcall.a \
      nimcall.nim && \
    cp ~/.cache/nim/nimcall_d/nimcall.h . && \
    cc -DNIM  -I ~/.choosenim/toolchains/nim-1.4.2/lib app.c -lnimcall -L. -o 
nimcall && \
    ./nimcall
    
    
    Run

bat: 
    
    
    nim c --app:lib --opt:size --noMain --header -o:libnimcall.lib nimcall.nim 
&&^
    copy C:\\Users\\Administrator\\nimcache\\nimcall_d\\nimcall.h &&^
    gcc -DNIM -I C:\\Users\\Administrator\\nim-1.4.2\\lib app.c -Lnimcall -L. 
-o nimcall &&^
    nimcall.exe
    
    
    Run

error: 
    
    
    C:\Users\ADMINI~1\AppData\Local\Temp\ccYCZvsJ.o:app.c:(.text+0x10): 
undefined reference to `__imp_NimMain'
    C:\Users\ADMINI~1\AppData\Local\Temp\ccYCZvsJ.o:app.c:(.text+0x1e): 
undefined reference to `__imp_chant'
    collect2.exe: error: ld returned 1 exit status
    
    
    Run

What should i include for these missing things? 

Reply via email to