>From 09c9a8c6925c21536d7e6dc5bedcd78ba51baf46 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 14 Jan 2016 02:20:24 +0100 Subject: [PATCH 2/2] Force linking wxWidgets alert functions into the main program With g++ 4.9, the alert_wx object file remains otherwise unused and is not included in the final lmi_wx executable, so force its inclusion. --- alert_wx.cpp | 3 +++ main_wx.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/alert_wx.cpp b/alert_wx.cpp index ad8c973..3c000b8 100644 --- a/alert_wx.cpp +++ b/alert_wx.cpp @@ -29,6 +29,7 @@ #include "alert.hpp" #include "configurable_settings.hpp" +#include "force_linking.hpp" #include // wxTheApp #include @@ -40,6 +41,8 @@ #include #include +LMI_FORCE_LINKING_IN_SITU(alert_wx) + namespace { volatile bool ensure_setup = set_alert_functions diff --git a/main_wx.cpp b/main_wx.cpp index 1608948..22492fd 100644 --- a/main_wx.cpp +++ b/main_wx.cpp @@ -49,6 +49,7 @@ #include +LMI_FORCE_LINKING_EX_SITU(alert_wx) LMI_FORCE_LINKING_EX_SITU(file_command_wx) LMI_FORCE_LINKING_EX_SITU(group_quote_pdf_generator_wx) LMI_FORCE_LINKING_EX_SITU(progress_meter_wx) -- 2.5.1