Closed KizzyCode closed 1 year ago
If I build a static library under macOS, I cannot link it to any C or Swift or Rust etc. application due to a lot of (C++ related?) linker errors.
cd "Botan-2.18.1" ./configure.py --prefix="./" --cc="clang" --build-targets="static" make -j12 check install
Configure output:
For the full build output, please see Full Build Output.txt.
test_botan.c
#include <stdio.h> #include <stdint.h> extern uint32_t botan_ffi_api_version(); int main() { printf("Version: %d\n", botan_ffi_api_version()); return 0; }
Build steps:
clang -L"./Botan-2.18.1/lib/" -l"botan-2" -o "test_botan" "test_botan.c"
Full build output with linker errors:
If I build a static library under macOS, I cannot link it to any C or Swift or Rust etc. application due to a lot of (C++ related?) linker errors.
Botan build steps:
Configure output:
For the full build output, please see Full Build Output.txt.
Test application
test_botan.c
:Build steps:
Full build output with linker errors: