g++ main.cpp -o test --std=c++11 -I ../include/ -I ../build-x86 -L ../build-x86/eca/xpmu/ -L ../build-x86/eca/tma/ -L ../build-x86/third_party/libpfm4/ -lmperf_xpmu -lpfm_x86 -lpfm
/usr/bin/ld: /tmp/ccRZS8u0.o: in function main': main.cpp:(.text+0x280): undefined reference to set_cpu_thread_affinity_spec_core(unsigned long)'
/usr/bin/ld: main.cpp:(.text+0x2b5): undefined reference to mperf::WallTimer::WallTimer()' /usr/bin/ld: main.cpp:(.text+0x2ef): undefined reference to mperf::WallTimer::get_msecs() const'
/usr/bin/ld: ../build-x86/third_party/libpfm4//libpfm.a(pfmlib_common.c.o):(.data.rel.ro+0x20): undefined reference to netburst_support' /usr/bin/ld: ../build-x86/third_party/libpfm4//libpfm.a(pfmlib_common.c.o):(.data.rel.ro+0x28): undefined reference to netburst_p_support'
/usr/bin/ld: ../build-x86/third_party/libpfm4//libpfm.a(pfmlib_common.c.o):(.data.rel.ro+0x30): undefined reference to amd64_k7_support' /usr/bin/ld: ../build-x86/third_party/libpfm4//libpfm.a(pfmlib_common.c.o):(.data.rel.ro+0x38): undefined reference to amd64_k8_revb_support