完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
编译器找到了iToA in & lt;STDLI.H.G.;但不是ULTA。谢谢。
以上来自于百度翻译 以下为原文 The compiler found itoa in #define FCY 16000000UL #include #include #include #include #include #include #include ERROR: main.c:1935:3: warning: implicit declaration of function 'ultoa' "Z:Program Files (x86)Microchipxc16v1.30binxc16-gcc.exe" -o dist/default/production/Stepper2.X.production.elf build/default/production/main.o -mcpu=24FV32KA302 -omf=elf -DXPRJ_default=default -legacy-libc -Wl,,,--defsym=__MPLAB_BUILD=1,,--script=p24FV32KA302.gld,--stack=16,--check-sections,--data-init,--pack-data,--handles,--isr,--no-gc-sections,--fill-upper=0,--stackguard=16,--no-force-link,--smart-io,-Map="dist/default/production/Stepper2.X.production.map",--report-mem,--memorysummary,dist/default/production/memoryfile.xml Product Version: MPLAB X IDE v3.50 Java: 1.8.0_91; Java HotSpot(TM) 64-Bit Server VM 25.91-b14 Runtime: Java(TM) SE Runtime Environment 1.8.0_91-b14 System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (mplab) User directory: C:UsersMainAppDataRoamingmplab_idedevv3.50 Cache directory: C:UsersMainAppDataLocalmplab_ideCachedevv3.50var Thank You |
|
相关推荐
4个回答
|
|
是否有链接错误或编译器警告?
以上来自于百度翻译 以下为原文 Do you get a linker error too or a compiler warning only? |
|
|
|
以上来自于百度翻译 以下为原文 make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf make[1]: Entering directory 'X:/PIC/Stepper/Stepper2.X' make -f nbproject/Makefile-default.mk dist/default/production/Stepper2.X.production.hex make[2]: Entering directory 'X:/PIC/Stepper/Stepper2.X' "Z:Program Files (x86)Microchipxc16v1.30binxc16-gcc.exe" main.c -o build/default/production/main.o -c -mcpu=24FV32KA302 -MMD -MF "build/default/production/main.o.d" -g -omf=elf -DXPRJ_default=default -legacy-libc -O0 -msmart-io=1 -Wall -msfr-warn=off main.c: In function 'LCD_varZAchse_Write': main.c:1935:3: warning: implicit declaration of function 'ultoa' "Z:Program Files (x86)Microchipxc16v1.30binxc16-gcc.exe" -o dist/default/production/Stepper2.X.production.elf build/default/production/main.o -mcpu=24FV32KA302 -omf=elf -DXPRJ_default=default -legacy-libc -Wl,,,--defsym=__MPLAB_BUILD=1,,--script=p24FV32KA302.gld,--stack=16,--check-sections,--data-init,--pack-data,--handles,--isr,--no-gc-sections,--fill-upper=0,--stackguard=16,--no-force-link,--smart-io,-Map="dist/default/production/Stepper2.X.production.map",--report-mem,--memorysummary,dist/default/production/memoryfile.xml xc16-ld 1.30 (A) Program Memory [Origin = 0x200, Length = 0x5600] section address length (PC units) length (bytes) (dec) ------- ------- ----------------- -------------------- .text 0x200 0x4138 0x61d4 (25044) .const 0x4338 0x132 0x1cb (459) Programmcode 0x446a 0x80 0xc0 (192) .dinit 0x44ea 0x70 0xa8 (168) .init.delay32 0x455a 0x1c 0x2a (42) Total program memory used (bytes): 0x6531 (25905) 78% Ivt Memory [Origin = 0x4, Length = 0xfc] section address length (PC units) length (bytes) (dec) ------- ------- ----------------- -------------------- .ivt._T1Interrupt 0x1a 0x2 0x3 (3) .ivt._INT1Interrupt 0x3c 0x2 0x3 (3) .ivt._T4Interrupt 0x4a 0x2 0x3 (3) .ivt._T5Interrupt 0x4c 0x2 0x3 (3) .ivt._INT2Interrupt 0x4e 0x2 0x3 (3) Data EEPROM Memory [Origin = 0x7ffe00, Length = 0x200] section address length (PC units) length (bytes) (dec) ------- ------- ----------------- -------------------- .eedata 0x7ffe00 0x38 0x38 (56) Total data EEPROM used (bytes): 0x38 (56) 10% Data Memory [Origin = 0x800, Length = 0x800] section address alignment gaps total length (dec) ------- ------- -------------- ------------------- .nbss 0x800 0 0x498 (1176) .ndata 0xc98 0 0x4 (4) .nbss 0xc9c 0 0x2 (2) .data 0xc9e 0 0x66 (102) Total data memory used (bytes): 0x504 (1284) 62% Dynamic Memory Usage region address maximum length (dec) ------ ------- --------------------- heap 0 0 (0) stack 0xd04 0x2fc (764) Maximum dynamic memory (bytes): 0x2fc (764) nbproject/Makefile-default.mk:129: recipe for target 'dist/default/production/Stepper2.X.production.hex' failed make[2]: Leaving directory 'X:/PIC/Stepper/Stepper2.X' nbproject/Makefile-default.mk:84: recipe for target '.build-conf' failed make[1]: Leaving directory 'X:/PIC/Stepper/Stepper2.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed build/default/production/main.o(.isr.text+0xeb2): In function `LCD_varZ_Write': X:PICStepperStepper2.X/main.c:1935: undefined reference to `_ultoa' build/default/production/main.o(.isr.text+0xf6c): In function `LCD_varIST_Write': X:PICStepperStepper2.X/main.c:1991: undefined reference to `_ultoa' build/default/production/main.o(.isr.text+0xf92): In function `LCD_varSOLL_Write': X:PICStepperStepper2.X/main.c:2000: undefined reference to `_ultoa' build/default/production/main.o(.isr.text+0xfb8): In function `LCD_varTIST_Write': X:PICStepperStepper2.X/main.c:2009: undefined reference to `_ultoa' build/default/production/main.o(.isr.text+0xfde): In function `LCD_varTSOLL_Write': X:PICStepperStepper2.X/main.c:2018: undefined reference to `_ultoa' build/default/production/main.o(.isr.text+0xff6):X:PICStepperStepper2.X/main.c:2027: more undefined references to `_ultoa' follow make[2]: *** [dist/default/production/Stepper2.X.production.hex] Error 255 make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2 BUILD FAILED (exit value 2, total time: 2s) |
|
|
|
请为此使用代码标签。您现在仍然可以添加它们(编辑您的帖子),您可能需要使用命令行选项——没有遗留的LIBC(您也可以在属性/XC16全局选项中找到它)。否则ULTOA没有定义,例如你的1.30版本。您可以在包含文件中看到对此的解释。
以上来自于百度翻译 以下为原文 Please use code tags for this. You can still add them now (edit your post) You likely have to use the command line option -no-legacy-libc (you find it also as easy checkbox in Properties / xc16 Global Options). Otherwise ultoa is not defined for e.g. your 1.30 version. You can see the explanation for this in the include file. |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
5242 浏览 9 评论
2031 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3207 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2256 浏览 5 评论
778浏览 1评论
669浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
597浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
679浏览 0评论
577浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 01:50 , Processed in 1.186429 second(s), Total 53, Slave 47 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号