我整个下午都在追逐一个问题,这个简单的任务就是做pow(a,b)总是产生结果0。ER XC32 1.42。这似乎是个问题,下载1.40和交换,一切恢复正常。我在归档中发现了这一点,但是H
ARMony 1.08.01安装程序页面说它也应该有1.40B部件支持——我在归档中找不到。当它被归档时,1.40b更新是否被卷进1.40,如果不是我在哪里我可以下载它?我看到,对于和谐1.xx,配对编译器是1.40和1.42的和谐2.xx。如果我翻回到1.42,问题又来了。我不知道这是否是1.42中的问题或者是否与Harmony版本有关,我所知道的只是花了很长时间才找到。我是通过在Mac上编译相同的代码找到的,Mac上使用1.40已经有一段时间了。整个下午我都快疯了。
以上来自于百度翻译
以下为原文
i have chased a problem all afternoon rela
ting to the simple task of doing pow(a,b) always producing the result 0.
I am using a PIC32MZ2048EFM144, MPLAB 3.35, Harmony 1.08.01
When I built a new PC a couple of weeks ago I downloaded everything shown as current on the Microchip website, including compiler xc32 1.42. This seems to have been the problem, downloading 1.40 and swapping to that everything returns to normal. I found this in the archive, but the Harmony 1.08.01 installer page says it should have 1.40B part support too - I cannot find this in the archive. Has the 1.40B update been rolled into 1.40 when it was archived, if not where I can I download it?
I see that for Harmony 1.xx the paired compiler is 1.40 and 1.42 for Harmony 2.xx. If I flip back to 1.42 the problem returns.
I don't know if this is an issue in 1.42 or if it is related to the Harmony version, all I do know is it took ages to find.
I found it by compiling the same code on the Mac, which was using 1.40 having been in use for some time now. It had been driving me nuts all afternoon.
0