Category : boost

I’m trying to use the odeint-solver from boost, but I’m stuck at the very beginning with a stupid mistake, I can’t seem to fix. I copied the boost-folder to my project-folder and using #include <boost/array.hpp> #include <boost/numeric/odeint.hpp> using namespace std; using namespace boost::numeric::odeint; from an example-code, is already not working (include-files not found). Changing < ..

Read more

I am going to build a C++ project (Project "test") to use libbitcoin library. I use CMake to configure. The libbitcoin.lib is built with Visual Studio 15 2017 (vs141). Libbitcoin build log: ConfigurationType : StaticLibrary Configuration : ReleaseLIB PlatformToolset : v141 TargetPath : H:CProjectlibbitcoin-systembuildsmsvcvs2017libbitcoin-system……..binx64Releasev141staticlibbitcoin-system.lib Linkage-secp256k1 : static block.cpp chain_state.cpp compact.cpp input.cpp output.cpp output_point.cpp point.cpp point_iterator.cpp ..

Read more

Consider: typedef adjacency_list< listS, //out edges stored as std::list listS, //verteices stored as std::list directedS, property<vertex_name_t, std::string>, property<edge_weight_t, double> > user_graph; Storage of edges and vertices as std::list precludes random access via [index]. Consider further that property maps are defined so. typedef property_map<user_graph, vertex_name_t>::type name_map_t; typedef property_map<user_graph, edge_weight_t>::type weight_map_t; user_graph g; name_map_t name_map = get(vertex_name, ..

Read more

i am trying to use boost to expose a c++ class to python, but i cannot figure out the linking error i am getting. My demo program looks like this: #include <boost/python.hpp> #include <Python.h> char const* greet() { return "hello, world"; } BOOST_PYTHON_MODULE(hello_ext) { using namespace boost::python; def("greet", greet); } and my meson file looks ..

Read more