Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error on Linux ARM platform due to undeclared identifier LPCST #22

Open
2001hurc opened this issue Jun 23, 2023 · 0 comments

Comments

@2001hurc
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant