1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我想在XC8的命令行中添加:MSGDeabess=179,这样它将停止报告嵌套注释。看来,您应该能够通过文件/ ProjtProjs/XC8 Global Opths/XC8编译器来实现这一点,将字符串添加到“附加选项”字段中,然后单击Apple。我希望字符串然后出现在“生成的命令行”框中。但是什么都没有发生。1:如何将字符串添加到编译器命令行?2:如果“附加选项”字段不打算完成这个功能,它的目的是什么?谢谢!
以上来自于百度翻译 以下为原文 I'd like to add: --MSGDISABLE=179 ...to the command line for XC8, so it will stop reporting nested comments. It appears you should be able to do this by going to File / Project Properties / XC8 Global Options / XC8 compiler, add the string to the "Additional options" field, and click Apply. I'd expect the string to then appear in the "Generated Command Line" box. But nothing happens. 1: How do you add strings to the compiler command line? 2: If the "Additional Options" field isn't intended to do exactly this function, what is its purpose? Thanks! |
|
相关推荐
5个回答
|
|
好吧,这太恐怖了…我尝试添加它,如上面所描述的,它没有出现在“生成的命令行”框中。但是现在,当我编译时,错误消息被抑制。换句话说,“-MSGDeabess=179”显然是被提供给编译器的,但是没有任何东西表明。我得到了我想要的结果是令人愉快的,但是…我怎么知道哪些东西是无形添加的?更重要的是,如果我想稍后删除那个命令怎么办?我去哪里删除它?
以上来自于百度翻译 以下为原文 OK, this is creepy... I tried adding it as described above, and it didn't appear in the "Generated Command Line" box. But now, when I compile, the error messages are suppressed. In other words, the "--MSGDISABLE=179" is apparently being provided to the compiler, but there is nothing indicating that. It's delightful that I got my desired result, BUT... how do I know what other things are invisibly added? More importantly, what if I want to later remove that command... where do I go to delete it? |
|
|
|
首先,您确定生成的命令行不会改变吗?这条线通常很长,你可能需要滚动才能看到它。第二,你的-MSGDeabess=179应该仍然在你放置它的附加选项字段中。如果你不再想要这个选项,就去掉那个字段。
以上来自于百度翻译 以下为原文 First, are you sure the generated command line doesn't change? That line is usually pretty long and you may have to scroll to see all of it. Second, your --msgdisable=179 should still be in the additional options field where you put it. If you don't want the option any more, go remove it from that field. |
|
|
|
哦。。。你是说“附加选项”内容被添加到“生成命令行”字段中的列表中?我希望点击“应用”可以将“附加选项”内容插入到该字段中。如果这是真的,那么伟大的(如果有点不正统)。至于你的第一个问题:是的,我确信它没有改变。我正在看它,在重新启动MPLAB X之后,我的添加不在那里。这条线足够短,整个物体都可以在没有滚动的情况下被看到(虽然我试图滚动它,只是为了确定),而且内容不在那里。现在看起来很清楚的是,“生成的命令行”内容来自上面的各种点和点击选项。同时,“附加选项”内容是您可以手动添加内容的地方。这些东西不会被添加到上面的窗口中,推测这两个字段在被传递到编译器的命令行之前被追加在一起。对吗?
以上来自于百度翻译 以下为原文 Oh... so you're saying the "Additional Options" content is appended to what is listed in the "Generated Command Line" field? I expected that clicking "Apply" would INSERT the "Additional Options" content into that field. If that's how it actually works, then great (if a little unorthodox). As to your first question: Yes, I'm certain it hasn't changed. I'm looking at it right now, after a fresh restart of MPLAB X, and my addition is not in there. The line is short enough that the entire thing is visible without scrolling (though I tried to scroll it, just to be sure) and the content is NOT there. What seems clear now is that the "Generated Command Line" content comes from the various point-and-click options up above. Meanwhile, and separately, the "Additional Options" content is where you can manually add things. Those things do not get added to the above window; presumably the two fields are appended together before being passed to the compiler's command line. Correct? |
|
|
|
您可以在生成日志中查看命令行是如何发出的。
以上来自于百度翻译 以下为原文 You can look in the build log to see what command line was issued. |
|
|
|
不幸的是,我不是这个领域的专家。但这听起来很合理。正如qhb指出的,您可以查看生成日志,或者仅在输出窗口中查看实际的命令行发布。我们很确定你的选择包括在前一篇文章中指出的,这个消息被抑制了。:)
以上来自于百度翻译 以下为原文 Unfortunately I'm not an expert in this field. But this sounds pretty reasonable. As qhb points out, you can look at the build log, or just in the output window, to see the actual command line issued. And we're pretty sure your option was included as you indicated in a previous post that the offending message was suppressed. :) |
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
778浏览 1评论
666浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
595浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
677浏览 0评论
576浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 06:28 , Processed in 1.415918 second(s), Total 82, Slave 66 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号