-static-libgcc ?

This commit is contained in:
qPCR4vir 2019-06-12 16:13:37 +02:00
parent 4818da59a8
commit 6a46ec4f52
2 changed files with 5 additions and 1 deletions

View File

@ -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()

View File

@ -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);