elddy/NimScan

Compilation error on Linux ARM platform due to undeclared identifier LPCST

Opened this issue · 0 comments

I am trying to compile a Nim software on a Linux ARM platform, but I am encountering a compilation error related to an undeclared identifier LPCSTR in the file ip_seg.nim. The error message is as follows:

/root/nim/NimScan/modules/ip_seg.nim(12, 25) Error: undeclared identifier: 'LPCSTR'

After investigating the issue, I found that LPCSTR is a Windows-specific data type that does not exist on Linux systems. It seems that the code in ip_seg.nim is referring to Windows API related headers, which is causing the error.

I would like to request help in resolving this issue. Is there a way to make the code cross-platform compatible or to use Linux-specific headers instead of Windows headers? Any guidance on how to proceed would be greatly appreciated.

Thank you for your help.