I am having trouble compiling my code on my gaming laptop [https://www.lenovo.com/ca/en/d/gaming-laptops/] using ARM compilers 22.0.1 with SVE enabled. The issue seems to be related to the <netdb.h> header file, which is causing a clash during compilation. Has anyone else experienced this issue?
Here's the error message I'm getting:
Any help or suggestions would be greatly appreciated. Here's a snippet of the code that's causing the issue:
Thanks in advance for your help!
We've actually seen an issue like this before. In https://community.arm.com/support-forums/f/high-performance-computing-forum/53311/arm-compilers-22-0-1-sve-compile-clash-with-netdb-h the user was trying to use Arm Compiler for Linux from the same era and running into an issue that looks to be the same.
Our best advice is to follow the options given in that post. The latest version of the compiler you are using may have picked up the fix, which was aimed for public release in LLVM15.
Hopefully that helps.