forward declare zmq_msg_t and moved include (#869)

* forward declare zmq_msg_t and moved include

* removed zmq from pkg list
This commit is contained in:
Erik Fröjdh 2023-11-20 11:43:30 +01:00 committed by GitHub
parent 96ed74c47c
commit d7aa3305d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: awalsh128/cache-apt-pkgs-action@latest - uses: awalsh128/cache-apt-pkgs-action@latest
with: with:
packages: libzmq3-dev libhdf5-dev qtbase5-dev qt5-qmake libqt5svg5-dev packages: libhdf5-dev qtbase5-dev qt5-qmake libqt5svg5-dev
version: 1.0 version: 1.0
- name: Configure CMake - name: Configure CMake

View File

@ -24,8 +24,9 @@
#include <rapidjson/document.h> //json header in zmq stream #include <rapidjson/document.h> //json header in zmq stream
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#include <zmq.h> //#include <zmq.h>
class zmq_msg_t;
namespace sls { namespace sls {
#define MAX_STR_LENGTH 1000 #define MAX_STR_LENGTH 1000

View File

@ -10,7 +10,7 @@
#include <string.h> #include <string.h>
#include <thread> #include <thread>
#include <vector> #include <vector>
#include <zmq.h>
namespace sls { namespace sls {
using namespace rapidjson; using namespace rapidjson;