I am learning Nim and love it so far, but I have a problem that I can't figure 
out. Is there anyone that could provide some advice?

I was trying to write some code to process Excel files. I installed the XLSX 
library using Nimble, but when I try to compile the code, the linker generates 
an error
    
    
    ...
    Hint:  [Link]
    
c:/nim/nim-2.0.0/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 cannot find -lz
    collect2.exe: error: ld returned 1 exit status
    ...
    
    
    Run

I found some previous posts on the forum that suggest modify the nim.cfg file, 
but the -lz option does not appear. What really baffles me is that I tried the 
XL library (<https://github.com/khchen/xl>) and this works correctly. I looked 
at both of the libraries .nimble files and the requirements are very similar. 
They both require "zippy".

I tried this on two different Windows 10 servers and got the same issue. My Nim 
version is `Nim Compiler Version 2.0.0 [Windows: amd64]`

Reply via email to