From d7aa3305d10d669ebb820c17206b71a37db0bf83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Fr=C3=B6jdh?= Date: Mon, 20 Nov 2023 11:43:30 +0100 Subject: [PATCH] forward declare zmq_msg_t and moved include (#869) * forward declare zmq_msg_t and moved include * removed zmq from pkg list --- .github/workflows/cmake.yml | 2 +- slsSupportLib/include/sls/ZmqSocket.h | 3 ++- slsSupportLib/src/ZmqSocket.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index ee5446272..107e1c436 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v3 - uses: awalsh128/cache-apt-pkgs-action@latest with: - packages: libzmq3-dev libhdf5-dev qtbase5-dev qt5-qmake libqt5svg5-dev + packages: libhdf5-dev qtbase5-dev qt5-qmake libqt5svg5-dev version: 1.0 - name: Configure CMake diff --git a/slsSupportLib/include/sls/ZmqSocket.h b/slsSupportLib/include/sls/ZmqSocket.h index 679cb7f20..772d6bc65 100644 --- a/slsSupportLib/include/sls/ZmqSocket.h +++ b/slsSupportLib/include/sls/ZmqSocket.h @@ -24,8 +24,9 @@ #include //json header in zmq stream #pragma GCC diagnostic pop -#include +//#include +class zmq_msg_t; namespace sls { #define MAX_STR_LENGTH 1000 diff --git a/slsSupportLib/src/ZmqSocket.cpp b/slsSupportLib/src/ZmqSocket.cpp index 2ab6e583f..d727d61dc 100644 --- a/slsSupportLib/src/ZmqSocket.cpp +++ b/slsSupportLib/src/ZmqSocket.cpp @@ -10,7 +10,7 @@ #include #include #include - +#include namespace sls { using namespace rapidjson;