As linker options i use : -lxilkernel -llwip4
>
> when i build the projet i get the following error message:
>
> Building target: ethernet.elf
> mb-gcc -o ethernet.elf main.o
> -LC:/CodeGeeks/test_edk3/microblaze_0/lib -Wl,-T
> -Wl,"C:\CodeGeeks\test_edk3\TestApp_Memory\src\TestApp_Memory_LinkScr.ld"
> -lxilkernel -llwip4
> C:/CodeGeeks/test_edk3/microblaze_0/lib/liblwip4.a(sys_arch.o): In
> function `sys_arch_sem_wait':
>
/cygdrive/c/CodeGeeks/test_edk3/microblaze_0/libsrc/lwip_v2_00_a/src/contrib/ports/v2pro/sys_arch.c(.text+0x148):
undefined reference to `sem_timedwait'
> C:/CodeGeeks/test_edk3/microblaze_0/lib/liblwip4.a(sys_arch.o): In
> function `sys_arch_mbox_fetch':
>
/cygdrive/c/CodeGeeks/test_edk3/microblaze_0/libsrc/lwip_v2_00_a/src/contrib/ports/v2pro/sys_arch.c(.text+0x594):
undefined reference to `sem_timedwait'
> collect2: ld returned 1 exit status
> make: *** [ethernet.elf] Error 1
> Build complete for project ethernet
Have you tried changing the order of -l libraries (since lwip4 calls xilkernel functions)?
-llwip4 -lxilkernel
Alan Nishioka