I'm developing a program for raspberry pi pico with HAT from Ubuntu. I'm using arm-none-eabi-gcc with cmake. I want to include sys/socket.h for tcp/ip socket programming
From the command: $ echo | arm-none-eabi-gcc -v -x c -E -, I get this
/usr/lib/gcc/arm-none-eabi/6.3.1/include
/usr/lib/gcc/arm-none-eabi/6.3.1/include-fixed
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/include
Thus getting no such file or directory when I try to compile .c file with #include <sys/socket.h>
I want to include /usr/include and its subdirectories where socket.h file is included.
How can I add /usr/include when compiling. Also should I instead use newlib for the pico machine?