从iar移植到Keil,keil编译错误,.a文件

问题:

assembling libmpllib.a...
....\Drivers\eMPL\mpl\libmpllib.a(1): error:A1167E: Invalid line start 

....\Drivers\eMPL\mpl\libmpllib.a(2): error:A1167E: Invalid line start 
....\Drivers\eMPL\mpl\libmpllib.a(35): error:A1271E: Line too long, maximum line length is 4095
....\Drivers\eMPL\mpl\libmpllib.a(35): warning:A1313W: Missing END directive at end of file


解决方法

  • In the Project Explorer on the left, expand Drivers/eMD
  • Find libmpllib.a and right-click on it
  • Click on "Options for File 'libmpllib.a'"
  • Change "File Type" to "Library file"
  • Rebuild the project
翻译:

打开.a文件的options,将文件类型从"File Type" 改至 "Library file",重新编译

你可能感兴趣的:(嵌入式)