Browsing this Thread:
1 Anonymous Users
|
Re: Link step failed! 誰可以幫幫忙哦
|
|
新會員
Joined
: 2008/11/7 5:38 最後登入時間
: 2009/6/23 4:18
Group:
註冊會員
Level : 3 HP : 0 / 55 MP : 6 / 2497 EXP : 20
|
沒有人能解答嗎?
發表於: 2009/4/12 6:48
|
|
|
Link step failed! 誰可以幫幫忙哦
|
|
新會員
Joined
: 2008/11/7 5:38 最後登入時間
: 2009/6/23 4:18
Group:
註冊會員
Level : 3 HP : 0 / 55 MP : 6 / 2497 EXP : 20
|
小弟初學dsPIC33, 想用一下它的外設xlcd來控制LCD, 結果出了以下錯誤:
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "Main.c" -o"Main.o" -D__DEBUG -g -Wall Main.c:1:1: warning: "__dsPIC33FJ32GP202__" redefined <built-in>:1:1: warning: this is the location of the previous definition Main.c: In function 'main': Main.c:28: warning: implicit declaration of function 'PutsXLCD' Main.c:37:2: warning: no newline at end of file Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\BusyXLCD.c" -o"BusyXLCD.o" -D__DEBUG -g -Wall xlcd\BusyXLCD.c:72:2: warning: #warning "Does not build on this target" Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\delay.c" -o"delay.o" -D__DEBUG -g -Wall xlcd\delay.c:69:2: warning: #warning "Does not build on this target" Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\OpenXLCD.c" -o"OpenXLCD.o" -D__DEBUG -g -Wall xlcd\OpenXLCD.c:70:2: warning: #warning "Does not build on this target" Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\PutsXLCD.c" -o"PutsXLCD.o" -D__DEBUG -g -Wall xlcd\PutsXLCD.c:27:2: warning: #warning "Does not build on this target" Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\ReadAddrXLCD.c" -o"ReadAddrXLCD.o" -D__DEBUG -g -Wall xlcd\ReadAddrXLCD.c:80:2: warning: #warning "Does not build on this target" Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\ReadDataXLCD.c" -o"ReadDataXLCD.o" -D__DEBUG -g -Wall xlcd\ReadDataXLCD.c:87:2: warning: #warning "Does not build on this target" Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\setCGRamAddr.c" -o"setCGRamAddr.o" -D__DEBUG -g -Wall xlcd\setCGRamAddr.c:83:2: warning: #warning "Does not build on this target" Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\setDDRamAddr.c" -o"setDDRamAddr.o" -D__DEBUG -g -Wall xlcd\setDDRamAddr.c:83:2: warning: #warning "Does not build on this target" Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\WriteCmdXLCD.c" -o"WriteCmdXLCD.o" -D__DEBUG -g -Wall xlcd\WriteCmdXLCD.c:71:2: warning: #warning "Does not build on this target" Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\WriteDataXLCD.c" -o"WriteDataXLCD.o" -D__DEBUG -g -Wall xlcd\WriteDataXLCD.c:91:2: warning: #warning "Does not build on this target" Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 "Main.o" "BusyXLCD.o" "delay.o" "OpenXLCD.o" "PutsXLCD.o" "ReadAddrXLCD.o" "ReadDataXLCD.o" "setCGRamAddr.o" "setDDRamAddr.o" "WriteCmdXLCD.o" "WriteDataXLCD.o" "D:\My Documents\Final_YR_project\Microchip\lib\libp33FJ32GP202-coff.a" -o"Microchip.cof" -Wl,-L"C:\Program Files\Microchip\MPLAB C30\lib",--script="C:\Program Files\Microchip\MPLAB C30\support\dsPIC33F\gld\p33FJ32GP202.gld",--defsym=__MPLAB_BUILD=1,--defsym=__MPLAB_DEBUG=1,-Map="Microchip.map",--report-mem
......
Main.o(.text+0x4): In function `main': D:\My Documents\Final_YR_project\Microchip\Main.c:22: undefined reference to `OpenXLCD' Main.o(.text+0x6):D:\My Documents\Final_YR_project\Microchip\Main.c:24: undefined reference to `BusyXLCD' Main.o(.text+0xe):D:\My Documents\Final_YR_project\Microchip\Main.c:26: undefined reference to `WriteCmdXLCD' Main.o(.text+0x16):D:\My Documents\Final_YR_project\Microchip\Main.c:28: undefined reference to `PutsXLCD' Main.o(.text+0x18):D:\My Documents\Final_YR_project\Microchip\Main.c:29: undefined reference to `BusyXLCD' Main.o(.text+0x20):D:\My Documents\Final_YR_project\Microchip\Main.c:31: undefined reference to `SetDDRamAddr' Main.o(.text+0x22):D:\My Documents\Final_YR_project\Microchip\Main.c:32: undefined reference to `BusyXLCD' Main.o(.text+0x2e):D:\My Documents\Final_YR_project\Microchip\Main.c:34: undefined reference to `PutsXLCD' Main.o(.text+0x30):D:\My Documents\Final_YR_project\Microchip\Main.c:35: undefined reference to `BusyXLCD' Link step failed.
我已經把修改好的xlcd.h放到我project的folder裏, main.c裏也設置好了, 就是不知道什麼一回事, 總是build不了?
我把zip檔upload了, 有那位大大可以幫忙看一下嗎?
Attach file:
Link only for registered users
發表於: 2009/4/10 6:39
|
|
You can view topic.
你 不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.