From 2286235786a7b6aea975d7e82f8e8d35c2295fb2 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Tue, 4 May 2021 03:21:49 +0200 Subject: [PATCH] fix dynamic linking with ostd::build, ostd::fs --- ostd/build/make.hh | 2 +- ostd/path.hh | 2 +- src/build_make.cc | 2 +- src/path.cc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ostd/build/make.hh b/ostd/build/make.hh index f555d1e..42c74b6 100644 --- a/ostd/build/make.hh +++ b/ostd/build/make.hh @@ -198,7 +198,7 @@ private: bool p_action = false; }; -struct make_task { +struct OSTD_EXPORT make_task { make_task() {} virtual ~make_task(); diff --git a/ostd/path.hh b/ostd/path.hh index 7dad3a8..4ced3af 100644 --- a/ostd/path.hh +++ b/ostd/path.hh @@ -1263,7 +1263,7 @@ using file_time_t = std::chrono::time_point; * up to two paths involved in the operation as ostd::path. Whether those * are used depends on the operation. */ -struct fs_error: std::system_error { +struct OSTD_EXPORT fs_error: std::system_error { /** @brief Constructs the error without paths. */ fs_error(std::string const &warg, std::error_code ec): std::system_error::system_error(ec, warg) diff --git a/src/build_make.cc b/src/build_make.cc index 258b2a5..bdea934 100644 --- a/src/build_make.cc +++ b/src/build_make.cc @@ -9,7 +9,7 @@ namespace ostd { namespace build { /* place the vtable in here */ -make_task::~make_task() {} +OSTD_EXPORT make_task::~make_task() {} static bool check_exec( string_range tname, std::vector const &deps diff --git a/src/path.cc b/src/path.cc index 47ed39c..5876d29 100644 --- a/src/path.cc +++ b/src/path.cc @@ -21,7 +21,7 @@ namespace ostd { /* place the vtables in here */ -path_error::~path_error() {} +OSTD_EXPORT path_error::~path_error() {} namespace fs { fs_error::~fs_error() {}