On Friday October 16 2015 01:17:50 Friedrich W. H. Kossebau wrote:
> On my system with gcc version 5.1.1 it seems that does not result in a
Not, I've never seen this kind of error with gcc. Nor very often with clang,
fortunately...
> A workaround/fix might be to make KoSharedLoadingData a normally exported
> class with implementation of constructor/destructor inside libflake?
It would seem so. I've had to do a similar fix with KDE PIM's ktimetracker;
there, the issue was not a mysterious error message in the logs, but downright
failure of a dynamic_cast.
R.
diff --git a/libs/flake/CMakeLists.txt b/libs/flake/CMakeLists.txt
index 7a97edc..b927d1d 100644
--- a/libs/flake/CMakeLists.txt
+++ b/libs/flake/CMakeLists.txt
@@ -102,6 +102,7 @@ set(flake_SRCS
KoSnapData.cpp
SnapGuideConfigWidget.cpp
KoShapeShadow.cpp
+ KoSharedLoadingData.cpp
KoSharedSavingData.cpp
KoViewConverter.cpp
KoInputDeviceHandler.cpp
diff --git a/libs/flake/KoSharedLoadingData.cpp b/libs/flake/KoSharedLoadingData.cpp
new file mode 100644
index 0000000..4af8dc2
--- /dev/null
+++ b/libs/flake/KoSharedLoadingData.cpp
@@ -0,0 +1,28 @@
+/* This file is part of the KDE project
+ Copyright (C) 2007 Thorsten Zachmann <zachm...@kde.org>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+*/
+
+#include "KoSharedLoadingData.h"
+
+KoSharedLoadingData::KoSharedLoadingData()
+{
+}
+
+KoSharedLoadingData::~KoSharedLoadingData()
+{
+}
diff --git a/libs/flake/KoSharedLoadingData.h b/libs/flake/KoSharedLoadingData.h
index 0d9ed71..ce0372c 100644
--- a/libs/flake/KoSharedLoadingData.h
+++ b/libs/flake/KoSharedLoadingData.h
@@ -20,16 +20,18 @@
#ifndef KOSHAREDLOADINGDATA_H
#define KOSHAREDLOADINGDATA_H
+#include "flake_export.h"
+
/**
* The KoSharedLoadingData class is used to share data between shapes during loading.
* These data can be added to the KoShapeLoadingContext using KoShapeLoadingContext::addSharedData().
* A different shape can then get the data from the context using KoShapeLoadingContext::sharedData().
*/
-class KoSharedLoadingData
+class FLAKE_EXPORT KoSharedLoadingData
{
public:
- KoSharedLoadingData() {}
- virtual ~KoSharedLoadingData() {}
+ KoSharedLoadingData();
+ virtual ~KoSharedLoadingData();
};
#endif /* KOSHAREDLOADINGDATA_H */
_______________________________________________
calligra-devel mailing list
calligra-devel@kde.org
https://mail.kde.org/mailman/listinfo/calligra-devel