打印

pic24f16ka102编译出错

[复制链接]
2857|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
zzjjhh|  楼主 | 2012-8-22 16:37 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
IDE用的是MPLab X 1.30,编译器是XC16 1.0
rtcc。c是抄例程的运行过没错,加到我的project里就出现下面的编译错误

CLEAN SUCCESSFUL (total time: 51ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `C:/Microchip Solutions/workspace/gogo.X'
make  -f nbproject/Makefile-default.mk dist/default/production/gogo.X.production.hex
make[2]: Entering directory `C:/Microchip Solutions/workspace/gogo.X'
"C:\Program Files (x86)\Microchip\xc16\v1.00\bin\xc16-gcc.exe"   uart.c  -o build/default/production/uart.o  -c -mcpu=24F16KA102  -MMD -MF "build/default/production/uart.o.d"        -g -omf=elf -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.00\bin\xc16-gcc.exe"   main.c  -o build/default/production/main.o  -c -mcpu=24F16KA102  -MMD -MF "build/default/production/main.o.d"        -g -omf=elf -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.00\bin\xc16-gcc.exe"   I2C.c  -o build/default/production/I2C.o  -c -mcpu=24F16KA102  -MMD -MF "build/default/production/I2C.o.d"        -g -omf=elf -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.00\bin\xc16-gcc.exe"   rtcc.c  -o build/default/production/rtcc.o  -c -mcpu=24F16KA102  -MMD -MF "build/default/production/rtcc.o.d"        -g -omf=elf -mlarge-code -O0 -msmart-io=1 -Wall -msfr-warn=off
"C:\Program Files (x86)\Microchip\xc16\v1.00\bin\xc16-gcc.exe"   -o dist/default/production/gogo.X.production.elf  build/default/production/uart.o build/default/production/main.o build/default/production/I2C.o build/default/production/rtcc.o      -mcpu=24F16KA102        -omf=elf -Wl,--defsym=__MPLAB_BUILD=1,,--script=p24F16KA102.gld,--stack=16,--check-sections,--data-init,--pack-data,--handles,--isr,--no-gc-sections,--fill-upper=0,--stackguard=16,--no-force-link,--smart-io,--report-mem


Program Memory  [Origin = 0x200, Length = 0x29fe]

section                    address   length (PC units)   length (bytes) (dec)
-------                    -------   -----------------   --------------------
.text                        0x200                0xe6           0x159  (345)
.const                       0x2e6                0x7e            0xbd  (189)
.text                        0x364               0xa80           0xfc0  (4032)
.dinit                       0xde4                0x1a            0x27  (39)

                     Total program memory used (bytes):         0x11fd  (4605) 28%


Data Memory  [Origin = 0x800, Length = 0x600]

section                    address      alignment gaps    total length  (dec)
-------                    -------      --------------    -------------------
.ndata                       0x800                   0            0x10  (16)
.nbss                        0x810                   0            0x10  (16)

build/default/production/rtcc.o(.text+0x8c): In function `.LSM26':
: undefined reference to `_rtcc'
build/default/production/rtcc.o(.text+0x92): In function `.LSM27':
: undefined reference to `_rtcc'
build/default/production/rtcc.o(.text+0x98): In function `.LSM28':
: undefined reference to `_rtcc'
build/default/production/rtcc.o(.text+0x9e): In function `.LSM29':
: undefined reference to `_rtcc'
build/default/production/rtcc.o(.text+0xb6): In function `.LSM34':
: undefined reference to `_rtcc'
build/default/production/rtcc.o(.text+0xbc): more undefined references to `_rtcc' follow
                        Total data memory used (bytes):           0x20  (32) 2%


Dynamic Memory Usage

region                     address                      maximum length  (dec)
------                     -------                      ---------------------
heap                             0                                   0  (0)
stack                        0x820                               0x5e0  (1504)

                        Maximum dynamic memory (bytes):          0x5e0  (1504)

make[2]: *** [dist/default/production/gogo.X.production.hex] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
make[2]: Leaving directory `C:/Microchip Solutions/workspace/gogo.X'
make[1]: Leaving directory `C:/Microchip Solutions/workspace/gogo.X'

BUILD FAILED (exit value 2, total time: 4s)
沙发
zzjjhh|  楼主 | 2012-8-22 16:38 | 只看该作者
咋回事啊

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

主题

4

帖子

0

粉丝