/usr/include not in compilation path

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I am trying to compile a bunch of libraries together and some of the libraries use /usr/include libraries : for eg. #include <sys/socket.h>

I am not able to use these libraries because they need the complete file path i.e. /usr/include/sys/socket.h. Thus, the Makefile cannot find the sys/socket.h file. Unfortunately I cannot modify each and every file. Is there a method to define it in the WICED SDK Makefile?

0 Likes
1 Reply
Anonymous
Not applicable

You can modify Makefile and add include path into it.

But referring another socket.h may cause some conflict I think.

So for example if you use LwIP, you can include lwip/sockets.h instead. (I'm not sure it works.)

0 Likes