Hello,

I'm trying to compile a code using functions located in a library (libxenctrl), but ld cannot find the symbols :
Code:
gntring3_read_async : gntring3_read_async.o
	gcc gntring3_read_async.o -lxenctrl /home/fremals/GVirtus9/modules/gntring/libgntring4.o -o ring3_read_async -lm
Code:
/home/fremals/GVirtus9/modules/gntring/libgntring4.o: in function « connect_ring »:
libgntring4.c:(.text+0x328): undefined reference to « xc_interface_open(xentoollog_logger*, xentoollog_logger*, unsigned int) »
libgntring4.c:(.text+0x348): undefined reference to « xc_map_foreign_pages(xc_interface_core*, unsigned int, int, unsigned long const*, int) »
libgntring4.c:(.text+0x365): undefined reference to « xc_interface_close(xc_interface_core*) »
collect2: error: ld returned 1 exit status
Code:
fremals@fremals-System-Product-Name:~$ nm /usr/local/lib/libxenctrl.so | grep xc_interface_open
0000000000016c39 T xc_interface_open
00000000000169a3 t xc_interface_open_common
fremals@fremals-System-Product-Name:~$ nm /usr/local/lib/libxenctrl.so | grep xc_interface_close
0000000000016d26 T xc_interface_close
0000000000016c8e t xc_interface_close_common
fremals@fremals-System-Product-Name:~$ nm /usr/local/lib/libxenctrl.so | grep xc_map_foreign_pages
000000000001e4a6 T xc_map_foreign_pages
Does soemone know why ld cannot find the symbols please ?

Thank you !!