Thanks. I am using EndeavourOS latest version. I used "sudo pacman -Syu nim" to update nim application.
I tried running nim with "nim --lib:/usr/lib/nim c file.nim" and it works. I did not clearly understood your second comment. I have removed nim completely and then reinstalled but the folder /usr/lib/nim/lib does not exist/get created. I also tried running like this. "nim --hints:on --hint:Conf:on c file.nim" but I get the same error. Then I tried this one nim --lib:/usr/lib/nim --hints:on --hint:Conf:on c "ValData_Validation_2023.nim" (in directory: /home/ajayc/Documents/Valuation/Asian/2023/WorkSpace) Hint: used config file '''/etc/nim/nim.cfg''' [Conf] Hint: used config file '''/etc/nim/config.nims''' [Conf] Compilation finished successfully. I have checked the above two files but did not find any mention of /usr/lib/nim/lib folder ajay