完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有2台计算机,安装了相同的MPLABX IDE版本和XC16编译器。安装路径、项目路径和Windows版本都是相同的。我在其中一个项目中创建了一个项目。我想继续在另一台计算机上做这个项目,所以我把这个项目复制到了另一台计算机上。但是,当我编译这个项目时,我得到了Link文件错误,并且我手动添加GLD链接器文件来解决这个问题。为什么第一个不需要这个,而第二个不需要呢?我怎么解决这个问题?谢谢。
以上来自于百度翻译 以下为原文 I have 2 computers with the same mplabx ide version and xc16 compiler installed. Installation paths, Project path and Windows versions are also the same. I created a Project in one of them. I want to continue to work on the Project on the other computer so I copied the Project to the other computer. But when I compile the Project, I get the linker file error and I add .gld linker file manually to the project to solve the problem. Why the first one does not need this and the second one does? How can I fix this? Thanks. |
|
相关推荐
11个回答
|
|
请查看两者的链接器设置。看看是否使用了外部链接器文件。
以上来自于百度翻译 以下为原文 Look at the linker settings for both. See if one has use external linker file selected. |
|
|
|
你是指外部链接器文件吗?在哪里看呢?项目树中的链接器文件?我已经说过,一个没有链接器文件要编译(不需要添加手动,也不需要向项目树中添加链接器文件),另一个需要手动添加一个!
以上来自于百度翻译 以下为原文 do you mean external linker file? Where to look at it? Linker files at Project tree? I already said that one has no linker file(not required to add manuallay nor there seems a linker file added to the Project tree) to compile, the other requires to add one manually! |
|
|
|
没有项目设置中的链接器选项。您可以使用编译器或编译器自己的默认链接器文件。将其添加到项目中,不单击框。
以上来自于百度翻译 以下为原文 No the linker options in the project settings. You have the option to use the default linker file from the complier or you own. Adding it to the project does not click the box. |
|
|
|
您复制了项目文件夹,还是导出项目并将其导入另一台机器上?
以上来自于百度翻译 以下为原文 Did you copy the project folder, or did you export the project and import it on the other machine? |
|
|
|
我只看到“使用响应文件链接”选项。我没有看到其他的东西?
以上来自于百度翻译 以下为原文 I only see "Use response file to link" option. I did not see any other thing? |
|
|
|
|
|
|
|
我只看到“使用响应文件链接”选项。我没有看到其他的东西?就是这样。所以两者都检查了吗?如果是这样,那么他们必须有一个链接脚本附加到项目。
以上来自于百度翻译 以下为原文 I only see "Use response file to link" option. I did not see any other thing? That is it. So it is checked on both? If so then they must both have a linker script attached to the project. |
|
|
|
我只看到“使用响应文件链接”选项。我没有看到其他的东西?就是这样。所以两者都检查了吗?如果是这样,那么他们必须有一个链接脚本附加到项目。这是未经检查。我尝试了一个第三计算机,它有不同版本的Windows、MPLABX和XC16,并且还编译了它。三个编译中的两个,第三个需要添加链接器文件。这个错误是:----------------------------------------------------------------ESP-CPP.EXE:DSPIC33 EP256MC206GLD:没有这样的文件或DeloTyelel-CPP.EXE:警告:'-xc'在最后一个输入文件之后没有Efficelf cpp.EXE:没有输入文件:Microchip xC16V1.26bin bin \bin /ELF L.D.EXE:不打开链接器脚本文件DSPIC33 EP256MC206GLD.00:没有这样的文件或目录(2):**[DIST/NealStase/Studio/AsLrk-KONTH2V2O02Y类比测试。X.Engult.HEX ]错误255使[1 ]:**[Bug CONF]错误2:使:**[构建IMPL]错误2
以上来自于百度翻译 以下为原文 I only see "Use response file to link" option. I did not see any other thing? That is it. So it is checked on both? If so then they must both have a linker script attached to the project. It's unchecked. I tried a third computer which has different version of Windows, mplabx and xc16 and it also compiled. Two of three compiles, the third one requires to add linker file. The error is: -------------------------------------------------------------------------------- elf-cpp.exe: dsPIC33EP256MC206.gld: No such file or directory elf-cpp.exe: warning: '-x c' after last input file has no effect elf-cpp.exe: no input files c:microchipxc16v1.26binbin..bin/elf-ld.exe: cannot open linker script file dsPIC33EP256MC206.gld.00: No such file or directory make[2]: *** [dist/NewConfiguration/production/ASLR_KONT_V2_02_analogTest.X.production.hex] Error 255 make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2 |
|
|
|
如果两个都不检查,编译器就无法在编译器文件夹中找到默认值。1。可能是一个路径问题。2。文件可能从编译器丢失,安装错误?三。一台计算机指向一个不支持PIC的旧编译器版本?
以上来自于百度翻译 以下为原文 If it is unchecked on both then the compiler can not find the defaults found in the compiler folder. 1. Could be a path issue. 2. The File could be missing from the compiler, Bad install? 3. one computer is pointing to an older compiler version that does not support that PIC? |
|
|
|
|
|
|
|
有没有解释这些概念的文件?比如什么设置是什么?路径的细节是什么?项目的性质和细节是什么?如何设置和检查环境等,我盲目地,仍然不是很舒服,在这些问题,即使是随着时间的推移,我使用MPLABX。我也使用另一个MCU为另一个MCU很短的时间,我已经更自信什么是什么比MPLABX!
以上来自于百度翻译 以下为原文 Are there any documents explaining these concepts? For example what settings are what? What are the details of paths? What are the properties and details of the of the projects? How to set-up and check environment etc. I go blindly and still not very comfortable in these issues even it's been a long time that I use mplabx. I also use another IDE for another mcu for a very short time and I'm already more confident about what is what than mplabx! |
|
|
|
只有小组成员才能发言,加入小组>>
5162 浏览 9 评论
2000 浏览 8 评论
1928 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3172 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2226 浏览 5 评论
731浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
629浏览 0评论
527浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-23 03:00 , Processed in 1.589489 second(s), Total 98, Slave 81 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号