How to install third party libraries

前端 未结 2 1045
抹茶落季
抹茶落季 2021-01-31 23:48

I\'m sorta new to C++ and I\'ve decided to try and use odeint to do some simulations because python is too slow for my needs.

I found this package, which I

2条回答
  •  滥情空心
    2021-02-01 00:07

    Since odeint is a header only library you can place it with your own source code. Simply copy odeint's boost directory where your main.cpp is (assuming you have a main.cpp, but you should get the idea):

    your_sources/
        main.cpp
        boost/
            numeric/
                odeint/
                odeint.hpp
    

    Now you can use the library by including

    #include "boost/numeric/odeint.hpp"
    

提交回复
热议问题