请教高手,PICC编译的时候产生这样的错误是怎么回事呀?

[复制链接]
 楼主| smallred007 发表于 2012-2-23 21:00 | 显示全部楼层 |阅读模式
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\HI-TECH Software\PICC-18\PRO\9.63\bin\picc18.exe" -C -E"Simple_Dice.cce" "Simple_Dice.c" -O"Simple_Dice.obj" -Zg9 -O -ASMLIST -Q -MPLAB -18F452
Error[924]   : missing argument to "-O" option
Halting build on first failure as requested.
BUILD FAILED: Thu Feb 23 20:57:38 2012
airwill 发表于 2012-2-23 22:30 | 显示全部楼层
Why do I get "(924) missing argument to -O option" when compiling under MPLAB IDE?
The command-line options passed to the compiler driver changed in version 9
compilers, and you need to be using a new MPLAB IDE compiler plugin to ensure
these new options are used when compiling.

If you're using a version 9 compiler, in MPLAB IDE choose Select Language Toolsuite
from the Project menu and select the "HI-TECH Universal Toolsuite" rather than
one of the older compiler-specific toolsuites, such as the HI-TECH PICC Toolsuite or
the HI-TECH PICC-18 Toolsuite.

Do NOT specify the path of the compiler in the Location field of this dialog; it is not
used. See the webinar:
http://techtrain.microchip.com/w ... ail.aspx?Active=193
for more information on creating projects and using the HI-TECH Universal Toolsuite
in MPLAB IDE.


hi-tech 在 version 9 之後改了 -o
所以要去 microchip 下載新的 MPLAB IDE compiler plugin

http://www.htsoft.com/support/faqs.php#faq241
yewuyi 发表于 2012-2-24 08:26 | 显示全部楼层
下载最新的MPLAB,把原来的项目文件都删除掉,只保留源文件,然后重建项目,使用默认设置,然后再编译。
yewuyi 发表于 2012-2-24 08:27 | 显示全部楼层
-o  的命令改变了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

主题

21

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部

0

主题

21

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部