mac rust ld: library not found for -lglib-2.0 clang: error: linker command failed with exit code 1 (use -v to see invocation)

💡 原文中文,约700字,阅读约需2分钟。
📝

内容提要

本文介绍了解决macOS上链接器找不到libglib-2.0库的问题的两种方法:安装GLib库和告诉链接器GLib库的位置。最后建议重新构建项目并设置DYLD_LIBRARY_PATH环境变量。

🏷️

标签

➡️

继续阅读