且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

与Qt创建者和Linux提振

更新时间:2023-01-31 19:40:42

我只是我自己尝试过,这是工作,这是我的第一个Qt和提升计划。

I just tried by myself and it is working and it is my first Qt and boost program.

在.pro文件中,你只需要添加

In the .pro file you only need to add

LIBS += \
       -lboost_system\

因为我用提升压DIR在我包括源文件我没有提到包含文件。

I did not mention include file as I am using mentioning boost dir in my include in source file.

#include <boost/asio.hpp>
#include <boost/bind.hpp>

有关程序包,如果您使用的Fedora / RHEL系统只是做

For packages, if you are using Fedora/RHEL system just do

yum install boost boost-devel

和基于Ubuntu系统

And for Ubuntu based system

sudo apt-get install libboost-all-dev

希望这有助于。