Build error

hi,
when i install a new block ,try “make”,i got these errors:
CMakeFiles/test-scramble.dir/test_scramble.cc.o: In function
boost::filesystem::operator/(boost::filesystem::path const&, boost::filesystem::path const&)': test_scramble.cc:(.text._ZN5boost10filesystemdvERKNS0_4pathES3_[boost::filesystem::operator/(boost::filesystem::path const&, boost::filesystem::path const&)]+0x29): undefined reference toboost::filesystem::path::operator/=(boost::filesystem::path const&)’
CMakeFiles/test-scramble.dir/test_scramble.cc.o: In function main': test_scramble.cc:(.text.startup+0x8a): undefined reference toboost::filesystem::detail::current_path(boost::system::error_code*)’
test_scramble.cc:(.text.startup+0xdc): undefined reference to
boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)' test_scramble.cc:(.text.startup+0xf8): undefined reference toboost::filesystem::detail::create_directory(boost::filesystem::path
const&, boost::system::error_code*)’

what does this mean?how to solve it?
BZS

BZS,

This error indicates that you aren’t linking against the boost
filesystem
library.

In the CMakeLists.txt file within the “lib” directory of the custom
block,
there will be a section that looks similar to this:

target_link_libraries(
${GNURADIO_RUNTIME_LIBRARIES}

)

This indicates that

(please excuse the previous incomplete message)

You will need to update the target_link_libraries section to add the
following:

${Boost_FILESYSTEM_LIBRARY}

This will link against the boost filesystem library and resolve the
error
you’re receiving.

  • Marc

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs