# mingw64-build.bat -- The C compiler identification is GNU 8.1.0 -- Check for working C compiler: C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe -- Check for working C compiler: C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.25.0.windows.1") -- Git or repo not found. -- Try to detect version from "C:/stlink-develop/.version" file. -- stlink version: 1.6.0 -- Major 1 Minor 6 Patch 0 -- Performing Test C_SUPPORTS_STD_GNU99 -- Performing Test C_SUPPORTS_STD_GNU99 - Success -- Performing Test C_SUPPORTS_WALL -- Performing Test C_SUPPORTS_WALL - Success -- Performing Test C_SUPPORTS_WEXTRA -- Performing Test C_SUPPORTS_WEXTRA - Success -- Performing Test C_SUPPORTS_WSHADOW -- Performing Test C_SUPPORTS_WSHADOW - Success -- Performing Test C_SUPPORTS_D_FORTIFY_SOURCE_2 -- Performing Test C_SUPPORTS_D_FORTIFY_SOURCE_2 - Success -- Performing Test C_SUPPORTS_FSTRICT_ALIASING -- Performing Test C_SUPPORTS_FSTRICT_ALIASING - Success -- Performing Test C_SUPPORTS_WUNDEF -- Performing Test C_SUPPORTS_WUNDEF - Success -- Performing Test C_SUPPORTS_WFORMAT -- Performing Test C_SUPPORTS_WFORMAT - Success -- Performing Test C_SUPPORTS_WFORMAT_SECURITY -- Performing Test C_SUPPORTS_WFORMAT_SECURITY - Success -- Performing Test C_SUPPORTS_WMAYBE_UNINITIALIZED -- Performing Test C_SUPPORTS_WMAYBE_UNINITIALIZED - Success -- Performing Test C_SUPPORTS_WMISSING_VARIABLE_DECLARATIONS -- Performing Test C_SUPPORTS_WMISSING_VARIABLE_DECLARATIONS - Failed -- Performing Test C_SUPPORTS_WSHORTEN_64_TO_32 -- Performing Test C_SUPPORTS_WSHORTEN_64_TO_32 - Failed -- Performing Test C_SUPPORTS_WIMPLICIT_FUNCTION_DECLARATION -- Performing Test C_SUPPORTS_WIMPLICIT_FUNCTION_DECLARATION - Success -- Performing Test C_SUPPORTS_WREDUNDANT_DECLS -- Performing Test C_SUPPORTS_WREDUNDANT_DECLS - Success -- Performing Test C_SUPPORTS_O2 -- Performing Test C_SUPPORTS_O2 - Success -- Performing Test C_SUPPORTS_WERROR -- Performing Test C_SUPPORTS_WERROR - Success -- Could NOT find Libusb (missing: LIBUSB_INCLUDE_DIR) -- libusb archive already in build folder 7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21 Scanning the drive for archives: 1 file, 980895 bytes (958 KiB) Extracting archive: C:\stlink-develop\scripts\libusb-1.0.22.7z -- Path = C:\stlink-develop\scripts\libusb-1.0.22.7z Type = 7z Physical Size = 980895 Headers Size = 682 Method = LZMA2:23 BCJ Solid = + Blocks = 2 Everything is Ok Folders: 18 Files: 32 Size: 6294517 Compressed: 980895 -- Found Libusb: C:/Windows/System32/libusb-1.0.dll -- Looking for sys/mman.h -- Looking for sys/mman.h - not found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for __stack_chk_fail in ssp -- Looking for __stack_chk_fail in ssp - found -- STLINK_LIB_SHARED: stlink-shared -- PROJECT_VERSION_MAJOR: 1 -- VERSION: 1.6 -- Manpage generation disabled -- Configuring done -- Generating done -- Build files have been written to: C:/stlink-develop/scripts Scanning dependencies of target stlink-shared [ 2%] Building C object CMakeFiles/stlink-shared.dir/src/chipid.c.obj [ 5%] Building C object CMakeFiles/stlink-shared.dir/src/common.c.obj [ 8%] Building C object CMakeFiles/stlink-shared.dir/src/usb.c.obj [ 11%] Building C object CMakeFiles/stlink-shared.dir/src/sg.c.obj [ 14%] Building C object CMakeFiles/stlink-shared.dir/src/logging.c.obj [ 17%] Building C object CMakeFiles/stlink-shared.dir/src/flash_loader.c.obj [ 20%] Building C object CMakeFiles/stlink-shared.dir/src/mmap.c.obj [ 23%] Building C object CMakeFiles/stlink-shared.dir/src/mingw/mingw.c.obj [ 26%] Linking C shared library libstlink-shared.dll d000002.o:(.text+0x0): multiple definition of `libusb_bulk_transfer' d000001.o:(.text+0x0): first defined here d000002.o:(.idata$5+0x0): multiple definition of `_imp__libusb_bulk_transfer' d000001.o:(.idata$5+0x0): first defined here d000004.o:(.text+0x0): multiple definition of `libusb_claim_interface' d000003.o:(.text+0x0): first defined here d000004.o:(.idata$5+0x0): multiple definition of `_imp__libusb_claim_interface' d000003.o:(.idata$5+0x0): first defined here d000006.o:(.text+0x0): multiple definition of `libusb_clear_halt' d000005.o:(.text+0x0): first defined here d000006.o:(.idata$5+0x0): multiple definition of `_imp__libusb_clear_halt' d000005.o:(.idata$5+0x0): first defined here d000008.o:(.text+0x0): multiple definition of `libusb_close' d000007.o:(.text+0x0): first defined here d000008.o:(.idata$5+0x0): multiple definition of `_imp__libusb_close' d000007.o:(.idata$5+0x0): first defined here d000010.o:(.text+0x0): multiple definition of `libusb_detach_kernel_driver' d000009.o:(.text+0x0): first defined here d000010.o:(.idata$5+0x0): multiple definition of `_imp__libusb_detach_kernel_driver' d000009.o:(.idata$5+0x0): first defined here d000012.o:(.text+0x0): multiple definition of `libusb_error_name' d000011.o:(.text+0x0): first defined here d000012.o:(.idata$5+0x0): multiple definition of `_imp__libusb_error_name' d000011.o:(.idata$5+0x0): first defined here d000014.o:(.text+0x0): multiple definition of `libusb_exit' d000013.o:(.text+0x0): first defined here d000014.o:(.idata$5+0x0): multiple definition of `_imp__libusb_exit' d000013.o:(.idata$5+0x0): first defined here d000016.o:(.text+0x0): multiple definition of `libusb_free_device_list' d000015.o:(.text+0x0): first defined here d000016.o:(.idata$5+0x0): multiple definition of `_imp__libusb_free_device_list' d000015.o:(.idata$5+0x0): first defined here d000018.o:(.text+0x0): multiple definition of `libusb_get_bus_number' d000017.o:(.text+0x0): first defined here d000018.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_bus_number' d000017.o:(.idata$5+0x0): first defined here d000020.o:(.text+0x0): multiple definition of `libusb_get_configuration' d000019.o:(.text+0x0): first defined here d000020.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_configuration' d000019.o:(.idata$5+0x0): first defined here d000022.o:(.text+0x0): multiple definition of `libusb_get_device_address' d000021.o:(.text+0x0): first defined here d000022.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_device_address' d000021.o:(.idata$5+0x0): first defined here d000024.o:(.text+0x0): multiple definition of `libusb_get_device_descriptor' d000023.o:(.text+0x0): first defined here d000024.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_device_descriptor' d000023.o:(.idata$5+0x0): first defined here d000026.o:(.text+0x0): multiple definition of `libusb_get_device_list' d000025.o:(.text+0x0): first defined here d000026.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_device_list' d000025.o:(.idata$5+0x0): first defined here d000028.o:(.text+0x0): multiple definition of `libusb_get_string_descriptor_ascii' d000027.o:(.text+0x0): first defined here d000028.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_string_descriptor_ascii' d000027.o:(.idata$5+0x0): first defined here d000030.o:(.text+0x0): multiple definition of `libusb_init' d000029.o:(.text+0x0): first defined here d000030.o:(.idata$5+0x0): multiple definition of `_imp__libusb_init' d000029.o:(.idata$5+0x0): first defined here d000032.o:(.text+0x0): multiple definition of `libusb_kernel_driver_active' d000031.o:(.text+0x0): first defined here d000032.o:(.idata$5+0x0): multiple definition of `_imp__libusb_kernel_driver_active' d000031.o:(.idata$5+0x0): first defined here d000034.o:(.text+0x0): multiple definition of `libusb_open' d000033.o:(.text+0x0): first defined here d000034.o:(.idata$5+0x0): multiple definition of `_imp__libusb_open' d000033.o:(.idata$5+0x0): first defined here d000036.o:(.text+0x0): multiple definition of `libusb_open_device_with_vid_pid' d000035.o:(.text+0x0): first defined here d000036.o:(.idata$5+0x0): multiple definition of `_imp__libusb_open_device_with_vid_pid' d000035.o:(.idata$5+0x0): first defined here d000038.o:(.text+0x0): multiple definition of `libusb_set_configuration' d000037.o:(.text+0x0): first defined here d000038.o:(.idata$5+0x0): multiple definition of `_imp__libusb_set_configuration' d000037.o:(.idata$5+0x0): first defined here Warning: resolving _libusb_close@4 by linking to _libusb_close Use --enable-stdcall-fixup to disable these warnings Use --disable-stdcall-fixup to disable these fixups Warning: resolving _libusb_exit@4 by linking to _libusb_exit Warning: resolving _libusb_bulk_transfer@24 by linking to _libusb_bulk_transfer Warning: resolving _libusb_error_name@4 by linking to _libusb_error_name Warning: resolving _libusb_init@4 by linking to _libusb_init Warning: resolving _libusb_get_device_list@8 by linking to _libusb_get_device_list Warning: resolving _libusb_get_device_descriptor@8 by linking to _libusb_get_device_descriptor Warning: resolving _libusb_open@8 by linking to _libusb_open Warning: resolving _libusb_get_string_descriptor_ascii@16 by linking to _libusb_get_string_descriptor_ascii Warning: resolving _libusb_free_device_list@8 by linking to _libusb_free_device_list Warning: resolving _libusb_kernel_driver_active@8 by linking to _libusb_kernel_driver_active Warning: resolving _libusb_get_configuration@8 by linking to _libusb_get_configuration Warning: resolving _libusb_set_configuration@8 by linking to _libusb_set_configuration Warning: resolving _libusb_claim_interface@8 by linking to _libusb_claim_interface Warning: resolving _libusb_get_bus_number@4 by linking to _libusb_get_bus_number Warning: resolving _libusb_get_device_address@4 by linking to _libusb_get_device_address Warning: resolving _libusb_detach_kernel_driver@8 by linking to _libusb_detach_kernel_driver Warning: resolving _libusb_clear_halt@8 by linking to _libusb_clear_halt Warning: resolving _libusb_open_device_with_vid_pid@12 by linking to _libusb_open_device_with_vid_pid collect2.exe: error: ld returned 1 exit status mingw32-make[2]: *** [CMakeFiles\stlink-shared.dir\build.make:200: libstlink-shared.dll] Error 1 mingw32-make[1]: *** [CMakeFiles\Makefile2:744: CMakeFiles/stlink-shared.dir/all] Error 2 mingw32-make: *** [Makefile:162: all] Error 2 [ 2%] Linking C shared library libstlink-shared.dll d000002.o:(.text+0x0): multiple definition of `libusb_bulk_transfer' d000001.o:(.text+0x0): first defined here d000002.o:(.idata$5+0x0): multiple definition of `_imp__libusb_bulk_transfer' d000001.o:(.idata$5+0x0): first defined here d000004.o:(.text+0x0): multiple definition of `libusb_claim_interface' d000003.o:(.text+0x0): first defined here d000004.o:(.idata$5+0x0): multiple definition of `_imp__libusb_claim_interface' d000003.o:(.idata$5+0x0): first defined here d000006.o:(.text+0x0): multiple definition of `libusb_clear_halt' d000005.o:(.text+0x0): first defined here d000006.o:(.idata$5+0x0): multiple definition of `_imp__libusb_clear_halt' d000005.o:(.idata$5+0x0): first defined here d000008.o:(.text+0x0): multiple definition of `libusb_close' d000007.o:(.text+0x0): first defined here d000008.o:(.idata$5+0x0): multiple definition of `_imp__libusb_close' d000007.o:(.idata$5+0x0): first defined here d000010.o:(.text+0x0): multiple definition of `libusb_detach_kernel_driver' d000009.o:(.text+0x0): first defined here d000010.o:(.idata$5+0x0): multiple definition of `_imp__libusb_detach_kernel_driver' d000009.o:(.idata$5+0x0): first defined here d000012.o:(.text+0x0): multiple definition of `libusb_error_name' d000011.o:(.text+0x0): first defined here d000012.o:(.idata$5+0x0): multiple definition of `_imp__libusb_error_name' d000011.o:(.idata$5+0x0): first defined here d000014.o:(.text+0x0): multiple definition of `libusb_exit' d000013.o:(.text+0x0): first defined here d000014.o:(.idata$5+0x0): multiple definition of `_imp__libusb_exit' d000013.o:(.idata$5+0x0): first defined here d000016.o:(.text+0x0): multiple definition of `libusb_free_device_list' d000015.o:(.text+0x0): first defined here d000016.o:(.idata$5+0x0): multiple definition of `_imp__libusb_free_device_list' d000015.o:(.idata$5+0x0): first defined here d000018.o:(.text+0x0): multiple definition of `libusb_get_bus_number' d000017.o:(.text+0x0): first defined here d000018.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_bus_number' d000017.o:(.idata$5+0x0): first defined here d000020.o:(.text+0x0): multiple definition of `libusb_get_configuration' d000019.o:(.text+0x0): first defined here d000020.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_configuration' d000019.o:(.idata$5+0x0): first defined here d000022.o:(.text+0x0): multiple definition of `libusb_get_device_address' d000021.o:(.text+0x0): first defined here d000022.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_device_address' d000021.o:(.idata$5+0x0): first defined here d000024.o:(.text+0x0): multiple definition of `libusb_get_device_descriptor' d000023.o:(.text+0x0): first defined here d000024.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_device_descriptor' d000023.o:(.idata$5+0x0): first defined here d000026.o:(.text+0x0): multiple definition of `libusb_get_device_list' d000025.o:(.text+0x0): first defined here d000026.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_device_list' d000025.o:(.idata$5+0x0): first defined here d000028.o:(.text+0x0): multiple definition of `libusb_get_string_descriptor_ascii' d000027.o:(.text+0x0): first defined here d000028.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_string_descriptor_ascii' d000027.o:(.idata$5+0x0): first defined here d000030.o:(.text+0x0): multiple definition of `libusb_init' d000029.o:(.text+0x0): first defined here d000030.o:(.idata$5+0x0): multiple definition of `_imp__libusb_init' d000029.o:(.idata$5+0x0): first defined here d000032.o:(.text+0x0): multiple definition of `libusb_kernel_driver_active' d000031.o:(.text+0x0): first defined here d000032.o:(.idata$5+0x0): multiple definition of `_imp__libusb_kernel_driver_active' d000031.o:(.idata$5+0x0): first defined here d000034.o:(.text+0x0): multiple definition of `libusb_open' d000033.o:(.text+0x0): first defined here d000034.o:(.idata$5+0x0): multiple definition of `_imp__libusb_open' d000033.o:(.idata$5+0x0): first defined here d000036.o:(.text+0x0): multiple definition of `libusb_open_device_with_vid_pid' d000035.o:(.text+0x0): first defined here d000036.o:(.idata$5+0x0): multiple definition of `_imp__libusb_open_device_with_vid_pid' d000035.o:(.idata$5+0x0): first defined here d000038.o:(.text+0x0): multiple definition of `libusb_set_configuration' d000037.o:(.text+0x0): first defined here d000038.o:(.idata$5+0x0): multiple definition of `_imp__libusb_set_configuration' d000037.o:(.idata$5+0x0): first defined here Warning: resolving _libusb_close@4 by linking to _libusb_close Use --enable-stdcall-fixup to disable these warnings Use --disable-stdcall-fixup to disable these fixups Warning: resolving _libusb_exit@4 by linking to _libusb_exit Warning: resolving _libusb_bulk_transfer@24 by linking to _libusb_bulk_transfer Warning: resolving _libusb_error_name@4 by linking to _libusb_error_name Warning: resolving _libusb_init@4 by linking to _libusb_init Warning: resolving _libusb_get_device_list@8 by linking to _libusb_get_device_list Warning: resolving _libusb_get_device_descriptor@8 by linking to _libusb_get_device_descriptor Warning: resolving _libusb_open@8 by linking to _libusb_open Warning: resolving _libusb_get_string_descriptor_ascii@16 by linking to _libusb_get_string_descriptor_ascii Warning: resolving _libusb_free_device_list@8 by linking to _libusb_free_device_list Warning: resolving _libusb_kernel_driver_active@8 by linking to _libusb_kernel_driver_active Warning: resolving _libusb_get_configuration@8 by linking to _libusb_get_configuration Warning: resolving _libusb_set_configuration@8 by linking to _libusb_set_configuration Warning: resolving _libusb_claim_interface@8 by linking to _libusb_claim_interface Warning: resolving _libusb_get_bus_number@4 by linking to _libusb_get_bus_number Warning: resolving _libusb_get_device_address@4 by linking to _libusb_get_device_address Warning: resolving _libusb_detach_kernel_driver@8 by linking to _libusb_detach_kernel_driver Warning: resolving _libusb_clear_halt@8 by linking to _libusb_clear_halt Warning: resolving _libusb_open_device_with_vid_pid@12 by linking to _libusb_open_device_with_vid_pid collect2.exe: error: ld returned 1 exit status mingw32-make[2]: *** [CMakeFiles\stlink-shared.dir\build.make:200: libstlink-shared.dll] Error 1 mingw32-make[1]: *** [CMakeFiles\Makefile2:744: CMakeFiles/stlink-shared.dir/all] Error 2 mingw32-make: *** [Makefile:162: all] Error 2 [ 2%] Linking C shared library libstlink-shared.dll d000002.o:(.text+0x0): multiple definition of `libusb_bulk_transfer' d000001.o:(.text+0x0): first defined here d000002.o:(.idata$5+0x0): multiple definition of `_imp__libusb_bulk_transfer' d000001.o:(.idata$5+0x0): first defined here d000004.o:(.text+0x0): multiple definition of `libusb_claim_interface' d000003.o:(.text+0x0): first defined here d000004.o:(.idata$5+0x0): multiple definition of `_imp__libusb_claim_interface' d000003.o:(.idata$5+0x0): first defined here d000006.o:(.text+0x0): multiple definition of `libusb_clear_halt' d000005.o:(.text+0x0): first defined here d000006.o:(.idata$5+0x0): multiple definition of `_imp__libusb_clear_halt' d000005.o:(.idata$5+0x0): first defined here d000008.o:(.text+0x0): multiple definition of `libusb_close' d000007.o:(.text+0x0): first defined here d000008.o:(.idata$5+0x0): multiple definition of `_imp__libusb_close' d000007.o:(.idata$5+0x0): first defined here d000010.o:(.text+0x0): multiple definition of `libusb_detach_kernel_driver' d000009.o:(.text+0x0): first defined here d000010.o:(.idata$5+0x0): multiple definition of `_imp__libusb_detach_kernel_driver' d000009.o:(.idata$5+0x0): first defined here d000012.o:(.text+0x0): multiple definition of `libusb_error_name' d000011.o:(.text+0x0): first defined here d000012.o:(.idata$5+0x0): multiple definition of `_imp__libusb_error_name' d000011.o:(.idata$5+0x0): first defined here d000014.o:(.text+0x0): multiple definition of `libusb_exit' d000013.o:(.text+0x0): first defined here d000014.o:(.idata$5+0x0): multiple definition of `_imp__libusb_exit' d000013.o:(.idata$5+0x0): first defined here d000016.o:(.text+0x0): multiple definition of `libusb_free_device_list' d000015.o:(.text+0x0): first defined here d000016.o:(.idata$5+0x0): multiple definition of `_imp__libusb_free_device_list' d000015.o:(.idata$5+0x0): first defined here d000018.o:(.text+0x0): multiple definition of `libusb_get_bus_number' d000017.o:(.text+0x0): first defined here d000018.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_bus_number' d000017.o:(.idata$5+0x0): first defined here d000020.o:(.text+0x0): multiple definition of `libusb_get_configuration' d000019.o:(.text+0x0): first defined here d000020.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_configuration' d000019.o:(.idata$5+0x0): first defined here d000022.o:(.text+0x0): multiple definition of `libusb_get_device_address' d000021.o:(.text+0x0): first defined here d000022.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_device_address' d000021.o:(.idata$5+0x0): first defined here d000024.o:(.text+0x0): multiple definition of `libusb_get_device_descriptor' d000023.o:(.text+0x0): first defined here d000024.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_device_descriptor' d000023.o:(.idata$5+0x0): first defined here d000026.o:(.text+0x0): multiple definition of `libusb_get_device_list' d000025.o:(.text+0x0): first defined here d000026.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_device_list' d000025.o:(.idata$5+0x0): first defined here d000028.o:(.text+0x0): multiple definition of `libusb_get_string_descriptor_ascii' d000027.o:(.text+0x0): first defined here d000028.o:(.idata$5+0x0): multiple definition of `_imp__libusb_get_string_descriptor_ascii' d000027.o:(.idata$5+0x0): first defined here d000030.o:(.text+0x0): multiple definition of `libusb_init' d000029.o:(.text+0x0): first defined here d000030.o:(.idata$5+0x0): multiple definition of `_imp__libusb_init' d000029.o:(.idata$5+0x0): first defined here d000032.o:(.text+0x0): multiple definition of `libusb_kernel_driver_active' d000031.o:(.text+0x0): first defined here d000032.o:(.idata$5+0x0): multiple definition of `_imp__libusb_kernel_driver_active' d000031.o:(.idata$5+0x0): first defined here d000034.o:(.text+0x0): multiple definition of `libusb_open' d000033.o:(.text+0x0): first defined here d000034.o:(.idata$5+0x0): multiple definition of `_imp__libusb_open' d000033.o:(.idata$5+0x0): first defined here d000036.o:(.text+0x0): multiple definition of `libusb_open_device_with_vid_pid' d000035.o:(.text+0x0): first defined here d000036.o:(.idata$5+0x0): multiple definition of `_imp__libusb_open_device_with_vid_pid' d000035.o:(.idata$5+0x0): first defined here d000038.o:(.text+0x0): multiple definition of `libusb_set_configuration' d000037.o:(.text+0x0): first defined here d000038.o:(.idata$5+0x0): multiple definition of `_imp__libusb_set_configuration' d000037.o:(.idata$5+0x0): first defined here Warning: resolving _libusb_close@4 by linking to _libusb_close Use --enable-stdcall-fixup to disable these warnings Use --disable-stdcall-fixup to disable these fixups Warning: resolving _libusb_exit@4 by linking to _libusb_exit Warning: resolving _libusb_bulk_transfer@24 by linking to _libusb_bulk_transfer Warning: resolving _libusb_error_name@4 by linking to _libusb_error_name Warning: resolving _libusb_init@4 by linking to _libusb_init Warning: resolving _libusb_get_device_list@8 by linking to _libusb_get_device_list Warning: resolving _libusb_get_device_descriptor@8 by linking to _libusb_get_device_descriptor Warning: resolving _libusb_open@8 by linking to _libusb_open Warning: resolving _libusb_get_string_descriptor_ascii@16 by linking to _libusb_get_string_descriptor_ascii Warning: resolving _libusb_free_device_list@8 by linking to _libusb_free_device_list Warning: resolving _libusb_kernel_driver_active@8 by linking to _libusb_kernel_driver_active Warning: resolving _libusb_get_configuration@8 by linking to _libusb_get_configuration Warning: resolving _libusb_set_configuration@8 by linking to _libusb_set_configuration Warning: resolving _libusb_claim_interface@8 by linking to _libusb_claim_interface Warning: resolving _libusb_get_bus_number@4 by linking to _libusb_get_bus_number Warning: resolving _libusb_get_device_address@4 by linking to _libusb_get_device_address Warning: resolving _libusb_detach_kernel_driver@8 by linking to _libusb_detach_kernel_driver Warning: resolving _libusb_clear_halt@8 by linking to _libusb_clear_halt Warning: resolving _libusb_open_device_with_vid_pid@12 by linking to _libusb_open_device_with_vid_pid collect2.exe: error: ld returned 1 exit status mingw32-make[2]: *** [CMakeFiles\stlink-shared.dir\build.make:200: libstlink-shared.dll] Error 1 mingw32-make[1]: *** [CMakeFiles\Makefile2:744: CMakeFiles/stlink-shared.dir/all] Error 2 mingw32-make: *** [Makefile:162: all] Error 2