https://learn.microsoft.com/en-us/cpp/b ... w=msvc-170
чтобы создать dll в режиме отладки и сделал то же самое с помощью cmake.
Код: Выделить всё
cmake_minimum_required(VERSION 3.19.1)
project(MathLibrary)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
add_library(MathLibrary SHARED MathLibrary.cpp)
Код: Выделить всё
#### debug vs
2.4K Apr 7 15:10 Debug/MathLibrary.lib
38K Apr 7 15:10 Debug/MathLibrary.dll*
#### debug cmake
2.9K Apr 7 16:20 MathLibrary/build/Debug/MathLibrary.lib
52K Apr 7 16:20 MathLibrary/build/Debug/MathLibrary.dll*
Подробнее здесь: https://stackoverflow.com/questions/717 ... -and-cmake
Мобильная версия