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

Unable to compiler on debian for gnu g++ compiler #1

Open
starkdg opened this issue Jun 26, 2022 · 1 comment
Open

Unable to compiler on debian for gnu g++ compiler #1

starkdg opened this issue Jun 26, 2022 · 1 comment

Comments

@starkdg
Copy link

starkdg commented Jun 26, 2022

When following the compiler insructions, the following error. The timer library is installed.

This is on a debian system with gnu c compiler.

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libboost_timer.a(cpu_timer.o): in function (anonymous namespace)::ge t_cpu_times(boost::timer::cpu_times&)': (.text+0x19): undefined reference to boost::chrono::steady_clock::now()'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libboost_timer.a(cpu_timer.o): in function boost::timer::cpu_timer:: start()': (.text+0x74d): undefined reference to boost::chrono::steady_clock::now()'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libboost_timer.a(cpu_timer.o): in function boost::timer::cpu_timer:: stop()': (.text+0x878): undefined reference to boost::chrono::steady_clock::now()'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libboost_timer.a(cpu_timer.o): in function boost::timer::cpu_timer:: resume()': (.text+0xa33): undefined reference to boost::chrono::steady_clock::now()'

@starkdg
Copy link
Author

starkdg commented Jun 27, 2022

I fixed this by replacing by adding chrono in the find_package command in CMakeLists.txt file:

find_package(Boost REQUIRED COMPONENTS system fileystem iostreams timer date_time chrono)

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