NVIDIA / nvbandwidth

A tool for bandwidth measurements on NVIDIA GPUs.
Apache License 2.0
315 stars 30 forks source link

Linking error with libboost #17

Open SongyuanZhao opened 9 months ago

SongyuanZhao commented 9 months ago

When compiling on my system, I encountered a linking error with Boost, even though Boost is installed on the system, and CMake can locate it. The Boost version is 1.53.0.

After researching, I found that the issue is related to the Boost library version being outdated and not compatible with C++11 ABI. Following the instructions in this link ( https://stackoverflow.com/questions/54987856/boost-linking-problems ) and modifying CMake accordingly resolved the issue.

add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0)