Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README #8

Open
MikeShah opened this issue Jun 22, 2021 · 0 comments
Open

README #8

MikeShah opened this issue Jun 22, 2021 · 0 comments

Comments

@MikeShah
Copy link

MikeShah commented Jun 22, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant