소스 검색

Always export exception classes.

With gcc and hidden symbol visibility, exceptions must always
have default visibility for correct typeinfo lookup over dll
boundaries. See http://gcc.gnu.org/wiki/Visibility
Sascha Zelzer 14 년 전
부모
커밋
b8619e8b3f

+ 1 - 1
Libs/PluginFramework/ctkPluginException.h

@@ -37,7 +37,7 @@
  * <p>
  * This exception conforms to the general purpose exception chaining mechanism.
  */
-class CTK_PLUGINFW_EXPORT ctkPluginException : public ctkRuntimeException
+class Q_DECL_EXPORT ctkPluginException : public ctkRuntimeException
 {
 public:
 

+ 1 - 1
Libs/PluginFramework/ctkRuntimeException.h

@@ -29,7 +29,7 @@
 
 #include "ctkPluginFrameworkExport.h"
 
-class CTK_PLUGINFW_EXPORT ctkRuntimeException : public std::runtime_error
+class Q_DECL_EXPORT ctkRuntimeException : public std::runtime_error
 {
 public:
 

+ 1 - 1
Libs/PluginFramework/ctkServiceException.h

@@ -36,7 +36,7 @@
  * <p>
  * This exception conforms to the general purpose exception chaining mechanism.
  */
-class CTK_PLUGINFW_EXPORT ctkServiceException : public ctkRuntimeException
+class Q_DECL_EXPORT ctkServiceException : public ctkRuntimeException
 {
 public:
 

+ 1 - 1
Libs/PluginFramework/service/cm/ctkConfigurationException.h

@@ -29,7 +29,7 @@
  * An exception class to inform the Configuration Admin service
  * of problems with configuration data.
  */
-class CTK_PLUGINFW_EXPORT ctkConfigurationException : public ctkRuntimeException
+class Q_DECL_EXPORT ctkConfigurationException : public ctkRuntimeException
 {
 
 public: