From 292545330615dc27ff2438c42a64754a20126df2 Mon Sep 17 00:00:00 2001 From: mmaurus Date: Mon, 17 Oct 2016 10:37:51 +0200 Subject: [PATCH 1/2] :maurus: added print output of library path if library could not be loaded --- src/LibManager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/LibManager.cpp b/src/LibManager.cpp index 785a31a..12305fc 100644 --- a/src/LibManager.cpp +++ b/src/LibManager.cpp @@ -49,7 +49,7 @@ namespace lib_manager { static struct LibInfo stdlibInfo = { "libstdc++", "", (__GNUC__*100+__GNUC_MINOR__),"","",0}; #else -# warning Unknown standard C Library! +//#warning Unknown standard C Library! static struct LibInfo stdlibInfo = { "unknown stdlib", "", 0, "", "", 0 }; #endif @@ -496,7 +496,8 @@ namespace lib_manager { fprintf(stderr, "lib_manager - NOTIFICATION (concerning optional library):\n %s\n", errorMsg.c_str()); } else { - fprintf(stderr, "lib_manager - ERROR:\n %s\n", + fprintf(stderr, "lib_manager - ERROR loading %s:\n %s\n", + libPath.c_str(), errorMsg.c_str()); } } From 757c22cc876f3aefb6d7d935441e7a9e7f20cd69 Mon Sep 17 00:00:00 2001 From: mmaurus Date: Wed, 27 Sep 2017 13:43:48 +0200 Subject: [PATCH 2/2] minor changes for creating .lib file for shared library using msvc 11 --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index dfe7123..776b71f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,12 @@ set(DEPRECATED_HEADERS src/LibManager.h ) +if(MSVC) +#this is needed to create the .lib file of the shared library +set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS 1) +endif(MSVC) + + add_library(${PROJECT_NAME} SHARED ${SOURCES}) add_library(${PROJECT_NAME}_static STATIC ${SOURCES})