From 6a46ec4f521b6d42fb80df32bc23506b6bfc0de5 Mon Sep 17 00:00:00 2001 From: qPCR4vir Date: Wed, 12 Jun 2019 16:13:37 +0200 Subject: [PATCH] -static-libgcc ? --- build/cmake/shared_libs.cmake | 2 +- include/nana/gui/widgets/group.hpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build/cmake/shared_libs.cmake b/build/cmake/shared_libs.cmake index 104e252f..febb3b42 100644 --- a/build/cmake/shared_libs.cmake +++ b/build/cmake/shared_libs.cmake @@ -40,7 +40,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") # AN if(BUILD_SHARED_LIBS) target_compile_options(nana PUBLIC -lgcc -lstdc++) else() - target_link_libraries(nana PUBLIC -static -static-libstdc++) + target_link_libraries(nana PUBLIC -static-libgcc -static-libstdc++) endif(BUILD_SHARED_LIBS) endif() \ No newline at end of file diff --git a/include/nana/gui/widgets/group.hpp b/include/nana/gui/widgets/group.hpp index 43dd5e85..139f7f15 100644 --- a/include/nana/gui/widgets/group.hpp +++ b/include/nana/gui/widgets/group.hpp @@ -100,6 +100,10 @@ namespace nana{ group& enable_format_caption(bool format); group& collocate() noexcept; + + /// this will set the `usr_div_str` for an internal field, called the "user field". + /// The "full" `place` of a `group` widget is internally divided into a field for the title, + /// a field for the added "options" and a field for "user" widgets. group& div(const char* div_str) noexcept; field_reference operator[](const char* field);