智能车制作

标题: 编译出错问题 [打印本页]

作者: 邬影998    时间: 2012-6-10 11:21
标题: 编译出错问题
程序编译后出现以下提示怎解决求解。



Error   : the file 'math.h' cannot be opened
includes.h line 45   #include "math.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: startcf.c


Error   : the file 'stdio.h' cannot be opened
includes.h line 46   #include "stdio.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: startcf.c


Error   : illegal addressing mode
startcf.c line 201   {(asm macro expansion):1}    move.l %__RAMBAR + 0x21,d0; movec d0,RAMBAR;
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: startcf.c


Error   : unknown assembler instruction mnemonic
startcf.c line 201   {(asm macro expansion):1}    move.l %__RAMBAR + 0x21,d0; movec d0,RAMBAR;
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: startcf.c


Error   : the file 'math.h' cannot be opened
includes.h line 45   #include "math.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: main.c


Error   : the file 'stdio.h' cannot be opened
includes.h line 46   #include "stdio.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: main.c


Warning : implicit arithmetic conversion from 'unsigned char' to 'char'
main.c line 54         UartPutChar(0,RightWhiteLineEndLocation);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: main.c


Warning : implicit arithmetic conversion from 'int' to 'char'
main.c line 62            UartPutChar(0,CenterBlackLine[times]);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: main.c


Warning : implicit arithmetic conversion from 'char' to 'unsigned char'
main.c line 100         FirstGetUsefulLine=UsefulLineNum;  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: main.c


Error   : the file 'math.h' cannot be opened
includes.h line 45   #include "math.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: vectors.c


Error   : the file 'stdio.h' cannot be opened
includes.h line 46   #include "stdio.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: vectors.c


Error   : the file 'math.h' cannot be opened
includes.h line 45   #include "math.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: cpu.c


Error   : the file 'stdio.h' cannot be opened
includes.h line 46   #include "stdio.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: cpu.c


Error   : illegal addressing mode
cpu.c line 33       movec   d0,FLASHBAR  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: cpu.c


Error   : unknown assembler instruction mnemonic
cpu.c line 33       movec   d0,FLASHBAR  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: cpu.c


Error   : illegal addressing mode
cpu.c line 38       movec   d0,RAMBAR  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: cpu.c


Error   : unknown assembler instruction mnemonic
cpu.c line 38       movec   d0,RAMBAR  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: cpu.c


Error   : illegal addressing mode
cpu.c line 49       movec   A0,VBR  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: cpu.c


Error   : unknown assembler instruction mnemonic
cpu.c line 49       movec   A0,VBR  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: cpu.c


Error   : the file 'math.h' cannot be opened
includes.h line 45   #include "math.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: uart.c


Error   : the file 'stdio.h' cannot be opened
includes.h line 46   #include "stdio.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: uart.c


Warning : implicit arithmetic conversion from 'long' to 'char'
uart.c line 203        buf[index++]=m%10+'0';  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: uart.c


Error   : the file 'math.h' cannot be opened
includes.h line 45   #include "math.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: pit.c


Error   : the file 'stdio.h' cannot be opened
includes.h line 46   #include "stdio.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: pit.c


Error   : the file 'math.h' cannot be opened
includes.h line 45   #include "math.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: GPT.c


Error   : the file 'stdio.h' cannot be opened
includes.h line 46   #include "stdio.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: GPT.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
GPT.c line 25                       | MCF_INTC_ICR_IP(setinfo.IP);   
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: GPT.c


Error   : the file 'math.h' cannot be opened
includes.h line 45   #include "math.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: timer.c


Error   : the file 'stdio.h' cannot be opened
includes.h line 46   #include "stdio.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: timer.c


Error   : the file 'math.h' cannot be opened
includes.h line 45   #include "math.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: GPTIC.c


Error   : the file 'stdio.h' cannot be opened
includes.h line 46   #include "stdio.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: GPTIC.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
GPTIC.c line 41                                   | MCF_INTC_ICR_IP(setinfo.IP);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: GPTIC.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
GPTIC.c line 47                                   | MCF_INTC_ICR_IP(setinfo.IP);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: GPTIC.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
GPTIC.c line 53                                   | MCF_INTC_ICR_IP(setinfo.IP);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: GPTIC.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
GPTIC.c line 59                                   | MCF_INTC_ICR_IP(setinfo.IP);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: GPTIC.c


Warning : possible unwanted ';'
GPTIC.c line 76        while(!VsyncInterruptFlag);     //等待场中断  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: GPTIC.c


Warning : possible unwanted ';'
GPTIC.c line 78        while(!HREF);                   //等待有效信号  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: GPTIC.c


Warning : possible unwanted ';'
GPTIC.c line 83           while(!HsyncInterruptFlag);   
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: GPTIC.c


Warning : possible unwanted ';'
GPTIC.c line 126                  while(!HREF);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: GPTIC.c


Error   : the file 'math.h' cannot be opened
includes.h line 45   #include "math.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: led.c


Error   : the file 'stdio.h' cannot be opened
includes.h line 46   #include "stdio.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: led.c


Error   : the file 'math.h' cannot be opened
includes.h line 45   #include "math.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: GPTPA.C


Error   : the file 'stdio.h' cannot be opened
includes.h line 46   #include "stdio.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: GPTPA.C


Error   : the file 'math.h' cannot be opened
includes.h line 45   #include "math.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: PWM.C


Error   : the file 'stdio.h' cannot be opened
includes.h line 46   #include "stdio.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: PWM.C


Error   : the file 'math.h' cannot be opened
includes.h line 45   #include "math.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Error   : the file 'stdio.h' cannot be opened
includes.h line 46   #include "stdio.h"  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : possible unwanted ';'
NOKIA5110.c line 210     for(;i<10;i++);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : possible unwanted ';'
NOKIA5110.c line 224      for(i=21000;i>0;i--);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 255       SET_SDIN(1);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 256       NOKIA_SCE(0);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 258       NOKIA_DC(0);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 260       NOKIA_DC(1);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 264       SDIN(1);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 266       SDIN(0);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 267      NOKIA_SCLK(0);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 268      dat = dat << 1;  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 269      NOKIA_SCLK(1);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 271       NOKIA_SCE(1);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 281        WriteByteNokia(0,0x40 | Y);  // column  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 282        WriteByteNokia(0,0x80 | X);           // row  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 312           SetAddr(addr_x+i,addr_y+j);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 312           SetAddr(addr_x+i,addr_y+j);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 324       NOKIA_RST(0);// 产生一个让LCD复位的低电平脉冲  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 327       NOKIA_RST(1);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 328       NOKIA_SCE(0); // 关闭LCD  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 331       NOKIA_SCE(1);// 使能LCD  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 342       NOKIA_SCE(0); // 关闭LCD  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 350       SetAddr(x*8,y);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 367           SetAddr(x+kuan*i,y+1);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c


Warning : implicit arithmetic conversion from 'int' to 'unsigned char'
NOKIA5110.c line 367           SetAddr(x+kuan*i,y+1);  
Project: 2HAOCHE.mcp, Target: INTERNAL_FLASH, Source File: NOKIA5110.c






作者: txan0630    时间: 2012-6-10 13:05
如果软件没问题的话,估计是变量问题
作者: txan0630    时间: 2012-6-10 13:07





欢迎光临 智能车制作 (http://dns.znczz.com/) Powered by Discuz! X3.2