27 #include <boost/filesystem.hpp> 52 std::ostringstream ss;
53 ss <<
"lib" << libName <<
"can.so";
54 LOG(
Log::DBG,
lh) <<
"Proceeding to load library " << ss.str();
59 char *err = dlerror();
61 std::ostringstream msg;
62 msg <<
"Error: could not load dynamic library ["<<ss.str()<<
"], current working directory ["<<boost::filesystem::current_path()<<
"] error: "<<err;
64 throw std::runtime_error(msg.str());
80 char *err = dlerror();
82 LOG(
Log::ERR,
lh) <<
"Error: could not locate the function, error: [" << err <<
"]";
83 throw std::runtime_error(
"Error: could not locate the function");
88 LOG(
Log::ERR,
lh) <<
"Error: could not locate the function, error: [" << err <<
"]";
89 throw std::runtime_error(
"Error: could not locate the function");