#1130·mbedtls

Error LNK1181 when USE_SHARED_MBEDTLS_LIBRARY CMake / MSVC

Author: solvingjCreated Oct 8, 2017Updated Sep 12, 2026
Labelsbughelp-wantedcomponent-platform

Description

  • Type: Bug
  • Priority: Minor

Bug

OS
windows

mbed TLS build:
Version: 2.6.0 and 2.1.9 OS version: Windows 10
Visual studio version: 2017 Expected behavior
Should be able to build shared library.

Actual behavior

bash
LINK : fatal error LNK1104: cannot open file 'Debug\mbedcrypto.lib' [C:\Users\jerry\git-c\mbedtls\build_shared\library\
mbedx509.vcxproj]

Steps to reproduce
Git clone or extract the latest release of this library. From the project root, do the following.

bash
mkdir build
cd build
cmake -DENABLE_TESTING=Off -DUSE_SHARED_MBEDTLS_LIBRARY=On ..
cmake --build .