2

我刚刚使用默认选项安装了 boost-serialization 并得到了这个结果

ashot@ashot-desktop:~/boost_1_53_0$ sudo ./b2 install

Component configuration:

    - atomic                   : not building
    - chrono                   : not building
    - context                  : not building
    - date_time                : not building
    - exception                : not building
    - filesystem               : not building
    - graph                    : not building
    - graph_parallel           : not building
    - iostreams                : not building
    - locale                   : not building
    - math                     : not building
    - mpi                      : not building
    - program_options          : not building
    - python                   : not building
    - random                   : not building
    - regex                    : not building
    - serialization            : building
    - signals                  : not building
    - system                   : not building
    - test                     : not building
    - thread                   : not building
    - timer                    : not building
    - wave                     : not building

...patience...
...found 20271 targets...

我下载了 boost 序列化教程文件http://www.boost.org/doc/libs/1_53_0/libs/serialization/example/demo.cpp并编译了它。

运行后我收到此错误

ashot@ashot-desktop:~/c++$ g++ demo.cpp -lboost_serialization
ashot@ashot-desktop:~/c++$ ./a.out 
./a.out: error while loading shared libraries: libboost_serialization.so.1.53.0: cannot open shared object file: No such file or directory
4

0 回答 0