Links but bombs immediately during startup.

This commit is contained in:
casey langen 2023-01-10 20:33:26 -08:00
parent fdd5a5bbb7
commit ceb744da2f
5 changed files with 20 additions and 20 deletions

View File

@ -82,16 +82,16 @@ namespace musik {
EXPORT virtual void error(const std::string& tag, const std::string& string) override;
};
static void Start(std::vector<IBackend*> backends = { new SimpleFileBackend() });
static void Shutdown();
static EXPORT void Start(std::vector<IBackend*> backends = { new SimpleFileBackend() });
static EXPORT void Shutdown();
static void verbose(const std::string& tag, const std::string& string) noexcept;
static void v(const std::string& tag, const std::string& string) noexcept;
static void info(const std::string& tag, const std::string& string) noexcept;
static void i(const std::string& tag, const std::string& string) noexcept;
static void warning(const std::string& tag, const std::string& string) noexcept;
static void w(const std::string& tag, const std::string& string) noexcept;
static void error(const std::string& tag, const std::string& string) noexcept;
static void e(const std::string& tag, const std::string& string) noexcept;
static EXPORT void verbose(const std::string& tag, const std::string& string) noexcept;
static EXPORT void v(const std::string& tag, const std::string& string) noexcept;
static EXPORT void info(const std::string& tag, const std::string& string) noexcept;
static EXPORT void i(const std::string& tag, const std::string& string) noexcept;
static EXPORT void warning(const std::string& tag, const std::string& string) noexcept;
static EXPORT void w(const std::string& tag, const std::string& string) noexcept;
static EXPORT void error(const std::string& tag, const std::string& string) noexcept;
static EXPORT void e(const std::string& tag, const std::string& string) noexcept;
};
}

View File

@ -55,9 +55,9 @@ namespace musik { namespace core {
EXPORT ~LibraryFactory();
static void Initialize(IMessageQueue& messageQueue);
static LibraryFactory& Instance();
static void Shutdown();
static EXPORT void Initialize(IMessageQueue& messageQueue);
static EXPORT LibraryFactory& Instance();
static EXPORT void Shutdown();
EXPORT ILibraryPtr DefaultLocalLibrary();
EXPORT ILibraryPtr DefaultRemoteLibrary();

View File

@ -74,8 +74,8 @@ namespace musik { namespace core { namespace net {
sigslot::signal3<PiggyWebSocketClient*, State, State> StateChanged;
static std::shared_ptr<PiggyWebSocketClient> Instance(MessageQueue* messageQueue);
static void Shutdown();
static EXPORT std::shared_ptr<PiggyWebSocketClient> Instance(MessageQueue* messageQueue);
static EXPORT void Shutdown();
EXPORT PiggyWebSocketClient(const PiggyWebSocketClient&) = delete;
EXPORT virtual ~PiggyWebSocketClient();

View File

@ -55,18 +55,18 @@ namespace musik { namespace core {
class PluginFactory {
public:
static PluginFactory& Instance();
static EXPORT PluginFactory& Instance();
template <typename T>
struct ReleaseDeleter {
EXPORT void operator()(T* t) {
void operator()(T* t) {
t->Release();
}
};
template <typename T>
struct NullDeleter {
EXPORT void operator()(T* t) {
void operator()(T* t) {
}
};
@ -134,7 +134,7 @@ namespace musik { namespace core {
}
}
std::shared_ptr<musik::core::sdk::IPlugin> QueryGuid(const std::string& guid) {
EXPORT std::shared_ptr<musik::core::sdk::IPlugin> QueryGuid(const std::string& guid) {
using T = musik::core::sdk::IPlugin;
std::shared_ptr<T> result;
using Deleter = PluginFactory::ReleaseDeleter<T>;

View File

@ -47,7 +47,7 @@ namespace musik { namespace core { namespace runtime {
int64_t data2);
public:
static IMessagePtr Create(
static EXPORT IMessagePtr Create(
IMessageTarget* target,
int messageType,
int64_t data1 = 0LL,