Hi Murat,

Did you enable Network support in the menuconfig?

Normally when some function is not found it means some feature in the
menuconfig is not enabled.

BR,

Alan

On 7/3/21, murat tologlu <mtolo...@hotmail.com> wrote:
> Hi,
>
> I am doing experiments of porting standard posix applications to Nuttx, I
> try to run same applications on both Ubuntu and Nuttx.  In one application I
> needed to use socket.h, I did "#include <sys/socket.h>" in my c file but it
> seems that the linker doesn't find the library, I get "undefined reference
> to `socketpair' 'send' 'recv' errors while all of them clearly defined in
> sys/socket.h !
>
> Of-course I can modify the c file, Makefile, I can move or copy library
> files to appropriate locations to resolve the problem, but I would like to
> learn the formal (preferred) way of resolving this issue on Nuttx
>  because the same code compiles and runs on Ubuntu without any modification
> other than removing <nuttx/config.h>.
>
> BR
> Murat
>

Reply via email to