您好: 我想在汇编文件中调用C文件定义的变量,但编译报错,具体做法和报错情况如下: C头文件(.h): #include "xc.h" #include <stdint.h> extern int16_t dcmCorrFactor C源文件(.C): #include "Variables_s.h" int16_t dcmCorrFactor = 32767; 汇编文件(.S): #include "Variables_s.h" .include "p33Exxxx.inc" mov _dcmCorrFactor , w12 编译时报错: \support\dsPIC33E\h/p33EP64GS505.h:26785:Error: Invalid mnemonic: 'extern' 感觉像是头文件调用冲突了 麻烦哪位大神帮忙指导下,如何处理,万分感谢!!! |