打印
[开发工具]

之前正常运行的代码现在居然编译不通过

[复制链接]
4853|12
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
m1a1ha|  楼主 | 2014-6-30 16:37 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
不知怎么回事,代码完全一样,没有改过,之前可以正常运行,今天却不行了。
错误如下
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F6014 -x c -c   "6302.c" -o"6302.o" -D__DEBUG -g -Wall
Microchip MPLAB C30 License Manager Version v3_11 (Build Date Aug  6 2008).
Copyright (c) 2008 Microchip Technology Inc. All rights reserved.
The MPLAB C30 license has expired.
pic30-coff-cc1.exe: warning: Options have been disabled due to expired license
   Visit http://www.microchip.com/ to purchase a new key.
6302.c:1: error: stray '\20' in program
6302.c:1: error: stray '#' in program
6302.c:1: error: syntax error before 'e2'
6302.c:1:6: warning: null character(s) ignored
6302.c:1: error: stray '\210' in program
6302.c:1:8: warning: null character(s) ignored
6302.c:1: error: stray '\1' in program
6302.c:1:22: warning: null character(s) ignored
6302.c:1:29: warning: null character(s) ignored
6302.c:1: error: stray '\149' in program
6302.c:1: error: stray '\233' in program
6302.c:1: error: stray '\177' in program
6302.c:1: error: stray '\238' in program
6302.c:1: error: stray '\130' in program
6302.c:1: error: stray '\244' in program
6302.c:1: error: stray '\146' in program
6302.c:1: error: stray '\240' in program
6302.c:1: error: stray '\186' in program
6302.c:1: error: stray '\19' in program
6302.c:1: error: stray '\3' in program
6302.c:1:61: error: invalid suffix "X_" on integer constant
6302.c:1: error: stray '\167' in program
6302.c:1: error: stray '\1' in program
6302.c:1: error: stray '\214' in program
6302.c:1: error: stray '\19' in program
6302.c:1: error: stray '\179' in program
6302.c:1: error: stray '\156' in program
6302.c:1: error: stray '\209' in program
6302.c:1: error: stray '\16' in program
6302.c:1: error: stray '\' in program
6302.c:1: error: stray '\180' in program
6302.c:1: error: stray '\250' in program
6302.c:1: error: stray '\4' in program
6302.c:1: error: stray '\31' in program
6302.c:1: error: stray '\180' in program
6302.c:1: error: stray '\177' in program
6302.c:1: error: stray '\234' in program
6302.c:1: error: stray '\173' in program
6302.c:1: error: stray '\128' in program
6302.c:1: error: stray '\155' in program
6302.c:1: error: stray '`' in program
6302.c:1: error: stray '\178' in program
6302.c:1: error: stray '\137' in program
6302.c:1: error: stray '\202' in program
6302.c:1: error: stray '#' in program
6302.c:1: error: stray '\165' in program
6302.c:1: error: stray '\169' in program
6302.c:1: error: stray '\16' in program
6302.c:1: error: stray '\21' in program
6302.c:1: error: stray '\178' in program
6302.c:1: error: stray '\175' in program
6302.c:1: error: stray '\185' in program
6302.c:1: error: stray '\232' in program
6302.c:1: error: stray '\167' in program
6302.c:1: error: stray '\31' in program
6302.c:1: error: stray '\186' in program
6302.c:1: error: stray '\128' in program
6302.c:1: error: stray '\207' in program
6302.c:1: error: stray '\207' in program
6302.c:2: error: stray '\225' in program
6302.c:2: error: stray '\221' in program
6302.c:2: error: stray '\25' in program
6302.c:2: error: stray '\26' in program
6302.c:2: error: stray '\29' in program
6302.c:2: error: stray '\248' in program
6302.c:2: error: stray '\149' in program
6302.c:2: error: stray '\8' in program
6302.c:2: error: stray '\218' in program
6302.c:2: error: stray '\214' in program
6302.c:2: error: stray '\138' in program
6302.c:2: error: stray '\148' in program
6302.c:2: error: stray '\232' in program
6302.c:2: error: stray '\4' in program
6302.c:2: error: stray '\246' in program
6302.c:2: error: stray '\177' in program
6302.c:2: error: stray '\234' in program
6302.c:2: error: stray '\212' in program
6302.c:2: error: stray '\14' in program
6302.c:2: error: stray '\20' in program
6302.c:2: error: stray '\27' in program
6302.c:2: error: stray '\243' in program
6302.c:2: error: stray '\155' in program
6302.c:2: error: stray '\152' in program
6302.c:2: error: stray '\247' in program
6302.c:2: error: stray '\243' in program
6302.c:2: error: stray '\248' in program
6302.c:2: error: stray '`' in program
6302.c:2: error: stray '\2' in program
6302.c:2: error: stray '\169' in program
6302.c:2: error: stray '\165' in program
6302.c:2: error: stray '\209' in program
6302.c:2: error: stray '\19' in program
6302.c:2:62: warning: null character(s) preserved in literal
6302.c:2: error: missing terminating ' character
6302.c:2:139: warning: no newline at end of file
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `F:\PIC Program\my6302.mcp' failed.
Preprocessor symbol `__DEBUG' is defined.
Mon Jun 30 16:34:06 2014
----------------------------------------------------------------------
BUILD FAILED


而且文件图片上出现了锁

沙发
yewuyi| | 2014-6-30 17:01 | 只看该作者
编辑和编译环境有无改变?

如果都没有改变,则保留源代码,然后删除原项目文件,重新建立项目后编译看看

使用特权

评论回复
板凳
m1a1ha|  楼主 | 2014-6-30 17:10 | 只看该作者
yewuyi 发表于 2014-6-30 17:01
编辑和编译环境有无改变?

如果都没有改变,则保留源代码,然后删除原项目文件,重新建立项目后编译看看 ...

还是会出现那种错误

使用特权

评论回复
地板
m1a1ha|  楼主 | 2014-6-30 17:23 | 只看该作者
yewuyi 发表于 2014-6-30 17:01
编辑和编译环境有无改变?

如果都没有改变,则保留源代码,然后删除原项目文件,重新建立项目后编译看看 ...

但是把绝大部分代码删除,只剩下空的主函数,却没有那种错误了

使用特权

评论回复
5
m1a1ha|  楼主 | 2014-6-30 19:12 | 只看该作者
yewuyi 发表于 2014-6-30 17:01
编辑和编译环境有无改变?

如果都没有改变,则保留源代码,然后删除原项目文件,重新建立项目后编译看看 ...

Halting build on first failure as requested.
  最后一行错误说明代码是这个

使用特权

评论回复
6
millenniumm| | 2014-6-30 19:57 | 只看该作者
会不会是mplab c30编译器许可过期引起的?

使用特权

评论回复
7
m1a1ha|  楼主 | 2014-6-30 19:57 | 只看该作者
millenniumm 发表于 2014-6-30 19:57
会不会是mplab c30编译器许可过期引起的?

4月4日装的,应该是过期了吧。  怎么解决

使用特权

评论回复
8
millenniumm| | 2014-6-30 21:29 | 只看该作者
我用的是hi-tech的picc编译器,maplab c没用过,百度一下解决方案吧

使用特权

评论回复
9
lanmp| | 2014-6-30 21:53 | 只看该作者
写着呢
The MPLAB C30 license has expired.
pic30-coff-cc1.exe: warning: Options have been disabled due to expired license
   Visit http://www.microchip.com/ to purchase a new key.

使用特权

评论回复
10
m1a1ha|  楼主 | 2014-7-1 08:56 | 只看该作者
lanmp 发表于 2014-6-30 21:53
写着呢
The MPLAB C30 license has expired.
pic30-coff-cc1.exe: warning: Options have been disabled du ...

怎么解决啊,网上的方法不行啊

使用特权

评论回复
11
lanmp| | 2014-7-1 10:52 | 只看该作者
买License

使用特权

评论回复
12
li132350| | 2014-7-16 17:08 | 只看该作者
小弟也遇到同样的问题,我用的是我用的是hi-tech的picc编译器,编译结果是,以前建的项目,能顺利编译通过,把源代码复制出来,新建项目,编译说程序存储空间不够。真是悲剧

使用特权

评论回复
13
完美胜丰| | 2018-1-29 21:29 | 只看该作者
我也遇到了  win10 64位的电脑  请问你是怎么解决的

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

27

主题

69

帖子

0

粉丝