Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经使用 iar 将一个项目编译为 stm32 的库,在添加 .a 文件后,链接器会发出警告,指出使用的函数被隐式声明。该函数接受一个指向输入缓冲区的指针并返回一个指向输出缓冲区的指针,当分配一个指针来保存返回地址时,编译器会给出一个错误,即不能将 int 值分配给指针。
可能是什么错误,或者。添加lib的方式是否缺少某些东西
您还需要该.h文件以及数据结构和函数原型。
.h