diff --git a/common/settings/bom_settings.cpp b/common/settings/bom_settings.cpp index 9ca939368d..81c4ebf9f7 100644 --- a/common/settings/bom_settings.cpp +++ b/common/settings/bom_settings.cpp @@ -244,3 +244,8 @@ std::vector BOM_FMT_PRESET::BuiltInPresets() { return { BOM_FMT_PRESET::CSV(), BOM_FMT_PRESET::TSV(), BOM_FMT_PRESET::Semicolons() }; } + +#if !defined( __MINGW32__ ) +template class KICOMMON_API PARAM_LIST; +template class KICOMMON_API PARAM_LIST; +#endif \ No newline at end of file diff --git a/common/settings/parameters.cpp b/common/settings/parameters.cpp index 66c61465ae..a3bcf7ed41 100644 --- a/common/settings/parameters.cpp +++ b/common/settings/parameters.cpp @@ -128,8 +128,6 @@ template class KICOMMON_API PARAM_LIST; template class KICOMMON_API PARAM_LIST; template class KICOMMON_API PARAM_LIST; //template KICOMMON_API class PARAM_LIST; -template class KICOMMON_API PARAM_LIST; -template class KICOMMON_API PARAM_LIST; template class KICOMMON_API PARAM_LIST; template class KICOMMON_API PARAM_SET; diff --git a/include/settings/bom_settings.h b/include/settings/bom_settings.h index 57c9313d44..bc7869b216 100644 --- a/include/settings/bom_settings.h +++ b/include/settings/bom_settings.h @@ -38,10 +38,10 @@ struct KICOMMON_API BOM_FIELD }; KICOMMON_API bool operator!=( const BOM_FIELD& lhs, const BOM_FIELD& rhs ); -KICOMMON_API bool operator<( const BOM_FIELD& lhs, const BOM_FIELD& rhs ); +KICOMMON_API bool operator<( const BOM_FIELD& lhs, const BOM_FIELD& rhs ); KICOMMON_API void to_json( nlohmann::json& j, const BOM_FIELD& f ); -KICOMMON_API void from_json( const nlohmann::json& j, BOM_FIELD& f ); +KICOMMON_API void from_json( const nlohmann::json& j, BOM_FIELD& f ); // A complete preset defining a BOM "View" with a list of all the fields to show, @@ -67,10 +67,10 @@ struct KICOMMON_API BOM_PRESET }; KICOMMON_API bool operator!=( const BOM_PRESET& lhs, const BOM_PRESET& rhs ); -KICOMMON_API bool operator<( const BOM_PRESET& lhs, const BOM_PRESET& rhs ); +KICOMMON_API bool operator<( const BOM_PRESET& lhs, const BOM_PRESET& rhs ); KICOMMON_API void to_json( nlohmann::json& j, const BOM_PRESET& f ); -KICOMMON_API void from_json( const nlohmann::json& j, BOM_PRESET& f ); +KICOMMON_API void from_json( const nlohmann::json& j, BOM_PRESET& f ); // A formatting preset, like CSV (Comma Separated Values) @@ -95,10 +95,12 @@ struct KICOMMON_API BOM_FMT_PRESET }; KICOMMON_API bool operator!=( const BOM_FMT_PRESET& lhs, const BOM_FMT_PRESET& rhs ); -KICOMMON_API bool operator<( const BOM_FMT_PRESET& lhs, const BOM_FMT_PRESET& rhs ); +KICOMMON_API bool operator<( const BOM_FMT_PRESET& lhs, const BOM_FMT_PRESET& rhs ); KICOMMON_API void to_json( nlohmann::json& j, const BOM_FMT_PRESET& f ); -KICOMMON_API void from_json( const nlohmann::json& j, BOM_FMT_PRESET& f ); +KICOMMON_API void from_json( const nlohmann::json& j, BOM_FMT_PRESET& f ); +extern template class APIVISIBLE PARAM_LIST; +extern template class APIVISIBLE PARAM_LIST; #endif diff --git a/include/settings/parameters.h b/include/settings/parameters.h index 7e9af4f248..3320917a87 100644 --- a/include/settings/parameters.h +++ b/include/settings/parameters.h @@ -29,7 +29,6 @@ #include #include #include -#include #include #include @@ -562,8 +561,6 @@ template class KICOMMON_API PARAM_LIST; template class KICOMMON_API PARAM_LIST; template class KICOMMON_API PARAM_LIST; template class KICOMMON_API PARAM_LIST; -template class KICOMMON_API PARAM_LIST; -template class KICOMMON_API PARAM_LIST; template class KICOMMON_API PARAM_LIST; template class KICOMMON_API PARAM_LIST; #else @@ -571,8 +568,6 @@ extern template class APIVISIBLE PARAM_LIST; extern template class APIVISIBLE PARAM_LIST; extern template class APIVISIBLE PARAM_LIST; extern template class APIVISIBLE PARAM_LIST; -extern template class APIVISIBLE PARAM_LIST; -extern template class APIVISIBLE PARAM_LIST; extern template class APIVISIBLE PARAM_LIST; extern template class APIVISIBLE PARAM_LIST; #endif