From cd98c0595e2b5813bc7f9c80d15cca4af07f20d4 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 20 Sep 2015 20:49:26 +0100 Subject: Set visibility --- libdbpp/Jamfile.jam | 9 ++++++--- libdbpp/column.h | 5 +++-- libdbpp/command.h | 3 ++- libdbpp/connection.h | 3 ++- libdbpp/error.h | 5 +++-- libdbpp/modifycommand.h | 3 ++- libdbpp/selectcommand.h | 3 ++- 7 files changed, 20 insertions(+), 11 deletions(-) diff --git a/libdbpp/Jamfile.jam b/libdbpp/Jamfile.jam index 387afd6..3bde305 100644 --- a/libdbpp/Jamfile.jam +++ b/libdbpp/Jamfile.jam @@ -3,13 +3,16 @@ alias glibmm : : : : "`pkg-config --libs glibmm-2.4`" ; lib boost_date_time : : boost_date_time ; +lib adhocutil : : : : /usr/include/adhocutil ; lib dbpp : [ glob *.cpp ] : - -fPIC - glibmm + glibmm + adhocutil + -fvisibility=hidden + release:-flto : : . - glibmm + glibmm boost_date_time ; diff --git a/libdbpp/column.h b/libdbpp/column.h index 2eb2e8d..47492d1 100644 --- a/libdbpp/column.h +++ b/libdbpp/column.h @@ -4,9 +4,10 @@ #include #include #include +#include namespace DB { - class HandleField { + class DLL_PUBLIC HandleField { public: virtual void null() = 0; virtual void string(const char *, size_t len) = 0; @@ -17,7 +18,7 @@ namespace DB { virtual void timestamp(const boost::posix_time::ptime &) = 0; }; class Command; - class Column { + class DLL_PUBLIC Column { public: Column(const Glib::ustring &, unsigned int); virtual ~Column() = 0; diff --git a/libdbpp/command.h b/libdbpp/command.h index 8cc515f..20e2c83 100644 --- a/libdbpp/command.h +++ b/libdbpp/command.h @@ -3,9 +3,10 @@ #include #include +#include namespace DB { - class Command { + class DLL_PUBLIC Command { public: Command(const std::string & sql); virtual ~Command() = 0; diff --git a/libdbpp/connection.h b/libdbpp/connection.h index fdd27e9..2da3f05 100644 --- a/libdbpp/connection.h +++ b/libdbpp/connection.h @@ -2,6 +2,7 @@ #define CONNECTION_H #include +#include namespace DB { class SelectCommand; @@ -16,7 +17,7 @@ namespace DB { BulkUpdateUsingFromSrc, BulkUpdateUsingJoin, }; - class Connection { + class DLL_PUBLIC Connection { public: virtual ~Connection(); diff --git a/libdbpp/error.h b/libdbpp/error.h index 3da6316..ab55524 100644 --- a/libdbpp/error.h +++ b/libdbpp/error.h @@ -3,10 +3,11 @@ #include #include +#include namespace DB { - class Error : public virtual std::exception { }; - class ConnectionError : public Error { + class DLL_PUBLIC Error : public virtual std::exception { }; + class DLL_PUBLIC ConnectionError : public Error { public: ConnectionError(); ConnectionError(time_t); diff --git a/libdbpp/modifycommand.h b/libdbpp/modifycommand.h index 304603b..4cc8e72 100644 --- a/libdbpp/modifycommand.h +++ b/libdbpp/modifycommand.h @@ -2,9 +2,10 @@ #define DB_MODIFYCOMMAND_H #include "command.h" +#include namespace DB { - class ModifyCommand : public virtual Command { + class DLL_PUBLIC ModifyCommand : public virtual Command { public: ModifyCommand(const std::string & sql); ~ModifyCommand(); diff --git a/libdbpp/selectcommand.h b/libdbpp/selectcommand.h index c23ad81..a5788ea 100644 --- a/libdbpp/selectcommand.h +++ b/libdbpp/selectcommand.h @@ -7,10 +7,11 @@ #include #include #include +#include namespace DB { class Column; - class SelectCommand : public virtual Command { + class DLL_PUBLIC SelectCommand : public virtual Command { public: SelectCommand(const std::string & sql); ~SelectCommand(); -- cgit v1.2.3