添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
完美的生姜  ·  USAJOBS - Search·  1 月前    · 
爱逃课的毛豆  ·  Zheng Liu's Research ...·  5 月前    · 
千年单身的马铃薯  ·  林子菌·  8 月前    · 

How do I add.lib files

src/main.c:36: warning: ignoring #pragma comment [-Wunknown-pragmas]
36 | #pragma comment(lib, “lib/xxx.lib”)

Again, PlatformIO uses GCC. There are people in Link an ARMCC (Keil MDK) precompiled lib to a GCC project - Page 1 which say that it is compatible and other say it isn’t.

You can use the standard build_flags to try to link the library.

build_flags =
   -Llib/
   -lxxx

if libxx.lib is in lib/. (-L adds a folder to the search path, -l<name> links a specifc library file – the initial lib in the filename is often times omitted).