libperf icon indicating copy to clipboard operation
libperf copied to clipboard

README

Open MikeShah opened this issue 4 years ago • 0 comments

In the README the order of including the library (-lperf) should be at the end. It appears using the development instructions for linking the libraries does not otherwise work, as the scan order of the linker is not resolving the symbols in -lperf when specified beforehand.

Change: gcc -I/usr/local/include/perf -I/usr/local/lib/perf/include -L/usr/local/lib -lperf example.c

To the correct form: gcc -I/usr/local/include/perf -I/usr/local/lib/perf/include -L/usr/local/lib example.c -lperf

Tested on my ubuntu 18.04 machine.

MikeShah avatar Jun 22 '21 21:06 MikeShah