在include/asm/mach/blackfin.h文件中,有这样的语句:
#include "bf561.h"
#include "mem_map.h"
#include "defbf561.h"
#include "anomaly.h"
当在asm文件中包含这个头文件时,将引起以下错误:
[error pp0051"> "....includeasm/mach/blackfin.h":36 failed to open '#include' file 'bf561.h'
[error pp0051"> "....includeasm/mach/blackfin.h":37 failed to open '#include' file 'mem_map.h'
[error pp0051"> "....includeasm/mach/blackfin.h":39 failed to open '#include' file 'anomaly.h'
preprocessor finished with 3 error(s) 0 warning(s)
[error ea1088"> previous errors in pre-processing prevent assembly.
实际上,错误提示的这三个文件都和blackfin.h放在同一个目录下,出错的原因是vdsp的汇编器不识别用双引号指定的包含文件,因而需要将之修改为:
#include
#include
#include "defbf561.h"
#include
这个文件在c中包含则没有问题。
如果喜欢uclinux-2008r1-rc8(bf561)到vdsp5的移植(62): failed to open '#include' file 'bf561.h'请收藏或告诉您的好朋友.
阅读(118) | 评论(0) | 转发(0) |