I want to use libpfm4 library for Perf_Event but compiling program which have library function throws following error.
/tmp/ccYD603t.o: In function `main':
encod.c:(.text+0x44): undefined reference to `pfm_initialize'
encod.c:(.text+0x57): undefined reference to `pfm_strerror'
encod.c:(.text+0x97): undefined reference to `pfm_get_perf_event_encoding'
encod.c:(.text+0xaa): undefined reference to `pfm_strerror'
collect2: ld returned 1 exit status
please can any one tell me how configure library in system to resolve this error.