关于C#:libzmq和cppzmq之间以及zmq.h和zmq.hpp之间的区别?

Difference between libzmq and cppzmq , and between zmq.h and zmq.hpp?

要在Linux-Ubuntu上安装ZeroMQ,请使用一个网站

https://tuananh.org/2015/06/16/how-to-install-zeromq-on-ubuntu/

表示要运行以下命令:

sudo apt-get install libtool pkg-config build-essential autoconf automake

sudo apt-get安装libzmq-dev

我们将分别安装libzmq-dev。
而根据

http://zeromq.org/intro:获取软件

"确保已安装libtool,pkg-config,build-essential,autoconf和automake。"
因此,我们不需要显式安装libzmq-dev。

所以我的问题是,它有什么区别? libzmq的用途是什么?它与libzmq-dev有何不同?如果我想用C语言编写代码,那么是否需要按照https://github.com/zeromq/cppzmq中的说明安装libzmq和cppzmq。

请告诉哪个头文件(zmq.h,zmq.hpp和zhelpers.hpp)来自哪个库?


libzmq仅包含zmq库(libzmq.so,libzmq.a)。

libzmq-dev包含库以及C头文件(zmq.h)。如果要使用zmq进行开发,则需要使用此版本而不是libzmq

"Make sure that libtool, pkg-config, build-essential, autoconf, and automake are installed." So we dont need to install libzmq-dev explicity.

如果要从源代码构建libzmq,则需要这些工具。如果通过apt

安装,则无需这样做。

cppzmq是zmq的C绑定,因此您可以使用C的东西与ZMQ一起使用,而不是通过libzmq提供的C api。

libzmq-dev中的

zmq.hcppzmq中的zmq.hpp和zhelpers.hpp。