From 1b65309ec9f38a08b215b3dd36360671a5719562 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Tue, 4 Nov 2025 17:12:41 +0100 Subject: [PATCH] Fix MSVC warning C4275 non - DLL-interface class 'class_1' used as base for DLL-interface class 'class_2' --- src/remote/pv/remote.h | 2 +- src/rpcService/pv/rpcService.h | 2 +- src/utils/pv/destroyable.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/remote/pv/remote.h b/src/remote/pv/remote.h index b70b0e3..4b7091f 100644 --- a/src/remote/pv/remote.h +++ b/src/remote/pv/remote.h @@ -119,7 +119,7 @@ void hackAroundRTEMSSocketInterrupt(); /** * Interface defining transport send control. */ -class TransportSendControl : public epics::pvData::SerializableControl { +class epicsShareClass TransportSendControl : public epics::pvData::SerializableControl { public: POINTER_DEFINITIONS(TransportSendControl); diff --git a/src/rpcService/pv/rpcService.h b/src/rpcService/pv/rpcService.h index 292c9e5..4119943 100644 --- a/src/rpcService/pv/rpcService.h +++ b/src/rpcService/pv/rpcService.h @@ -29,7 +29,7 @@ namespace epics { namespace pvAccess { -class epicsShareClass RPCRequestException : public std::runtime_error { +class RPCRequestException : public std::runtime_error { public: explicit RPCRequestException(std::string const & message) : diff --git a/src/utils/pv/destroyable.h b/src/utils/pv/destroyable.h index 07dfed6..88f03a7 100644 --- a/src/utils/pv/destroyable.h +++ b/src/utils/pv/destroyable.h @@ -21,7 +21,7 @@ namespace epics { namespace pvAccess { /** * @brief Instance declaring destroy method. */ - class Destroyable { + class epicsShareClass Destroyable { public: POINTER_DEFINITIONS(Destroyable); /**