Runtime exception when including boost :: asio headers

Given the code.,

#include <boost/asio.hpp> int main() { return 0; } 

I will compile it and contact boost_system-mt and then run it and get the following output from the console.

$. / clientapp

ending a call after calling an instance of 'boost :: exception_detail :: clone_impl

'what (): No such file or directory Abort trap

It does not look good. What?

+4
source share
1 answer

Boost :: Asio also requires pthread. Try compiling, add -lpthread to the gcc command.

+1
source

Source: https://habr.com/ru/post/1432577/


All Articles