完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
是的,MPLABX,我知道我有一个.CPP文件…我也有一些.c文件。我特别把它们添加到你的配置中,这表明我知道这些事实。有没有办法让这个消息停止显示?它也明显地引起了一个大的,红色的“!”出现在MPLABX的项目图标上。所有的东西都是很好的构建和部署。
以上来自于百度翻译 以下为原文 Yes, MPLABX, I know I have a .cpp file... I also have some .c files. I specifically added them to your configuration, which would indicate that I know these facts. Is there any way to get this message to stop showing? It's also apparently causing a big, red "!" to appear on the project's icon in MPLABX. Everything builds and deploys just fine. |
|
相关推荐
13个回答
|
|
为什么在同一个项目中混合CPP和C文件?
以上来自于百度翻译 以下为原文 Why have you mixed cpp and c files in the same project ? |
|
|
|
如果项目生成并部署,那么将文件范围从CPP更改为C?
以上来自于百度翻译 以下为原文 If the project builds and deploys then change the file extent from cpp to c ? |
|
|
|
您的意思是更改文件扩展名吗?我们有合法使用C++语言的文件。我们有一些文件是从源建立的,所以将项目中的所有文件变为“.CPP”也不是解决方案。我们的项目中绝对没有理由不能混合C++和C代码。XC32编译器可以很好地构建和链接所有的东西。如果我们试图混合Java之类的东西,那可能是另一回事了。
以上来自于百度翻译 以下为原文 Do you mean change the file extension? We have files that are legitimately using the C++ language. We have a few files that we're building from source, so changing all of the files in the project to ".cpp" wouldn't be the solution, either. There should be absolutely no reason we can't mix C++ and C code in our project. The XC32 compiler can build and link everything just fine. If we were trying to mix in something like Java, that might be a different story. |
|
|
|
你忽略了你正在使用的处理器。你忽略了你正在使用的编译器/版本。你提到你正在使用MPLAB X,哪个版本。你在使用CPP编译器吗?
以上来自于百度翻译 以下为原文 You neglected to mention the processor you are using. You neglected to mention the compiler/version you are using. You did mention you are using MpLab X, which version . Are you using the cpp compiler ? |
|
|
|
这个“软件”做了所有无用的事情,忽略了需要的东西,这不是很有趣吗?这基本上是当今的趋势,多年来。这将带给我们美好的未来;
以上来自于百度翻译 以下为原文 Isn't it funny how this "piece of software" does all the useless things and neglects to do the needed ones? Which is basically the trend nowadays, for years. And that will bring us to the sweet future ;) |
|
|
|
正如我所知,PIC32 MX250F256HXC32 1.42MPLABX V4.05As,C和C++都应该使用同一个XC32编译器,因为它将自动根据源文件选择用“-x C”或“-X C++”运行XC32-G++。
以上来自于百度翻译 以下为原文 PIC32MX250F256H XC32 1.42 MPLABX v4.05 As far as I've been able to tell, the same XC32 compiler should be used for both C and C++, as it automatically will choose to run xc32-g++ with "-x c" or "-x c++" depending on the source file. |
|
|
|
我没有在同一个项目中混合CPP和C文件。一个单独的许可证被用来使用C++,现在已经包含了。我必须尝试一下,看看会发生什么。
以上来自于百度翻译 以下为原文 I have not mixed cpp and c files in the same project. A separate license used to be required to use c++, it is now included. I will have to give it a try and see what happens. |
|
|
|
是的,当我找到C++编译器许可证时我有点困惑。它似乎并没有影响我使用C++与XC32。很高兴知道它不再需要了!
以上来自于百度翻译 以下为原文 Yeah, I was a little confused when I found the C++ "compiler license". It didn't seem to impact my using C++ with XC32. Good to know it's not needed anymore! |
|
|
|
|
|
|
|
我有一个主文件作为C++文件,因为它需要做C++实例化和诸如此类的东西。C文件主要是我们从源建立的库。
以上来自于百度翻译 以下为原文 I've got main as a C++ file, as it needs to do C++ instantiations and whatnot. The C files are mostly libraries that we build from source. |
|
|
|
我看了更多的红色“!”在我的项目图标上,显然它与我们正在使用的一个库中的“发布注释.html”文件有关。尽管该文件显然不是项目的一部分,但它是在MPLABX的“文件”窗口下检测到的,显然MPLABX在解析它时遇到了麻烦,导致了红色“!”关于加载警告,在MPLABX中打开项目在“输出”窗口中的“项目加载警告”选项卡中发出警告。(我试图把我的截图附加到我的帖子中,但我似乎无法让它发生。也许我的账户太新了?我试图看看我的配置.xml文件中是否有任何东西表明这个项目是一个“C”项目,但我什么也找不到。这没什么大不了的,所以我不会花太多的时间去复制它。我只是想说,如果MPLABX有一个开发人员感兴趣的话,我会提到它。
以上来自于百度翻译 以下为原文 I looked more into the red "!" over my project's icon, and apparently it has to do with a "Release Notes.html" file down in one of the libraries we're using. Even though that file obviously isn't part of the project, it's detected under the "Files" window in MPLABX and apparently MPLABX is having trouble parsing it, causing the red "!". As for the loading warning, opening the project in MPLABX gives me a warning under the "Project Loading Warning" tab in the "Output" window. (I tried to get my screenshots attached to my post, but I can't seem to get that to happen. Maybe my account is too new to do that?) I tried to see if there was anything in my configuration.xml file that would seem to indicate that the project is specifically a "C" project, but I couldn't find anything. This isn't big deal, so I wouldn't spend too much time trying to reproduce it. I just figured I'd mention it in case one of the devs for MPLABX was interested. |
|
|
|
我认为使用最新的MPLAX和XC32版本将是第一步。如果仍然希望打开一个支持案例,如果你想确保其中一个开发者有一个外观。我认为他们不太可能“更新”旧版本。
以上来自于百度翻译 以下为原文 I think using the latest MpLab X and xc32 versions would be the first step. If it still happens open a support case if you want to ensure one of the developers has a look. I think it is unlikely they would "update" an older version. |
|
|
|
只有小组成员才能发言,加入小组>>
5206 浏览 9 评论
2017 浏览 8 评论
1943 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3188 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2244 浏览 5 评论
758浏览 1评论
644浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
558浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
656浏览 0评论
556浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-8 02:16 , Processed in 1.142149 second(s), Total 70, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号