From 04e169774094e6307a6f24e20cc31f0c979242f8 Mon Sep 17 00:00:00 2001 From: Martyn Gigg <martyn.gigg@stfc.ac.uk> Date: Fri, 5 Jul 2013 09:49:07 +0100 Subject: [PATCH] Fixes for OSX 10.8 & Intel compiler. It doesn't generate a symbol for the destructor of the *FileLoader interfaces unless explicitly defined. All other platforms, including OS X 10.6, don't show this problem. Refs #7263 --- Code/Mantid/Framework/API/inc/MantidAPI/IFileLoader.h | 2 ++ Code/Mantid/Framework/API/inc/MantidAPI/IHDFFileLoader.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Code/Mantid/Framework/API/inc/MantidAPI/IFileLoader.h b/Code/Mantid/Framework/API/inc/MantidAPI/IFileLoader.h index 65ae5d0bed0..99a7d276f3d 100644 --- a/Code/Mantid/Framework/API/inc/MantidAPI/IFileLoader.h +++ b/Code/Mantid/Framework/API/inc/MantidAPI/IFileLoader.h @@ -36,6 +36,8 @@ namespace Mantid class MANTID_API_DLL IFileLoader : public Algorithm { public: + /// Virtual destructor (required by linker on some versions of OS X/Intel compiler) + virtual ~IFileLoader() {} /// Returns a confidence value that this algorithm can load a file virtual int confidence(Kernel::FileDescriptor & descriptor) const = 0; }; diff --git a/Code/Mantid/Framework/API/inc/MantidAPI/IHDFFileLoader.h b/Code/Mantid/Framework/API/inc/MantidAPI/IHDFFileLoader.h index 368eb120f17..7d5237cc220 100644 --- a/Code/Mantid/Framework/API/inc/MantidAPI/IHDFFileLoader.h +++ b/Code/Mantid/Framework/API/inc/MantidAPI/IHDFFileLoader.h @@ -36,6 +36,8 @@ namespace Mantid class DLLExport IHDFFileLoader : public API::Algorithm { public: + /// Virtual destructor (required by linker on some versions of OS X/Intel compiler) + virtual ~IHDFFileLoader() {} /// Returns a confidence value that this algorithm can load a file virtual int confidence(Kernel::HDFDescriptor & descriptor) const = 0; }; -- GitLab