pigirons / cpufp

A CPU tool for benchmarking the peak of floating points

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when executing "sh build.sh"

VeritasFutureKF opened this issue · comments

when executing "sh build.sh",cmd line reported is as folllowed:
/usr/bin/ld: smtl.o: in function `smtl_thread_func(void*)': smtl.cpp:(.text+0x78): undefined reference to `pthread_setaffinity_np' /usr/bin/ld: smtl.o: in function `smtl_init(smtl_t**, std::vector<int, std::allocator<int> >&)': smtl.cpp:(.text+0x3ff): undefined reference to `pthread_create' /usr/bin/ld: smtl.o: in function `smtl_fini(smtl_t*)': smtl.cpp:(.text+0x639): undefined reference to `pthread_join'
when I add -lpthread in build.sh ,errors were still reported.

me too.

I refactored the code. Now all the pthread settings are in build_[x64|arm64|...].sh.