embeddedsw icon indicating copy to clipboard operation
embeddedsw copied to clipboard

Undefined reference to pppos_create function

Open Sujjan19 opened this issue 1 year ago • 0 comments

I have already configured zcu-102 and Linux system using uart16550 successfully. Now i wanted to connect them through PPPoS (Point to point Protocol over serial connection) from lwip202 library. But when i try to build my code, i get


undefined reference to 'pppos_create' 
undefined reference to 'ppp_connect' 

Error shown in Xilinx sdk

Things i have already tried:

  1. Enabled Lwip202 in BSP settings.

BSP Settings

  1. Enabled PPP_SUPPORT by changing its value from '0' to '1' in netif/ppp/ppp_opts.h

ppp_opts.h

  1. Also have included the "ppp.h", "pppos.h", "lwipopts.h" in my main.c file.

Screenshot_3

  1. Also defined PPP_SUPPORT as 1 in "lwipopts.h" as it was not there by default.

lwipopts.h

PS: cntrl + left click on the pppos_create function does take me to the source file i.e., pppos.h which means that the pppos.h file is indeed linked to the project.

Please help.. Thanks.

Sujjan19 avatar Jul 31 '23 06:07 Sujjan19