Truestudio鏈接靜態庫文件的方法

一、Truestudio鏈接靜態庫文件時找不到庫文件的錯誤

不能在屬性 -》 C/C++ General -》 Path and Symbols -》 Libraries 添加庫文件路徑,添加後會報出找不到庫文件的錯誤!

 

 二、Truestudio鏈接庫文件的方法

  • 首先將各路徑下有關庫文件的路徑刪除
  • 然後在C Linker -》Miscellaneous 中添加庫文件的路徑