Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
519 views
in Technique[技术] by (71.8m points)

hyperlink - How to link object (.o) file in Eclipse

I'm trying to compile μcOSIII for my board (XMC4500 Relax Kit) but when I try to compile my files I get following output:

'Building target: XMC4500_uCOSIII.elf'
'Invoking: ARM-GCC C Linker'
"C:DAVE-3.1.10ARM-GCC/bin/arm-none-eabi-gcc" -T"../XMC4500_uCOSIII.ld" -nostartfiles -L"C:DAVE-3.1.10eclipse/../CMSIS/Infineon/Lib" -L"C:DAVE-3.1.10eclipse/../Examples/Lib" -L"C:DAVE-3.1.10eclipse/../emWin/Start/GUI" -Wl,-Map,"XMC4500_uCOSIII.map" -mcpu=cortex-m4 -mthumb -g3 -gdwarf-2 -o "XMC4500_uCOSIII.elf" "@makefile.rsp"  
Libraries/uCOS-III/Source/os_core.o: In function `OSIntExit':
D:DokumenteDropboxFH4SemesterBAK ArbeitworkspaceXMC4500_uCOSIIIDebug/../Libraries/uCOS-III/Source/os_core.c:344: undefined reference to `OSIntCtxSw'
Libraries/uCOS-III/Source/os_core.o: In function `OSSched':
D:DokumenteDropboxFH4SemesterBAK ArbeitworkspaceXMC4500_uCOSIIIDebug/../Libraries/uCOS-III/Source/os_core.c:421: undefined reference to `OSCtxSw'
Libraries/uCOS-III/Source/os_core.o: In function `OSStart':
D:DokumenteDropboxFH4SemesterBAK ArbeitworkspaceXMC4500_uCOSIIIDebug/../Libraries/uCOS-III/Source/os_core.c:728: undefined reference to `OSStartHighRdy'
Libraries/uCOS-III/Ports/ARM-Cortex-M4/Generic/GNU/os_cpu_c.o: In function `OSTaskSwHook':
D:DokumenteDropboxFH4SemesterBAK ArbeitworkspaceXMC4500_uCOSIIIDebug/../Libraries/uCOS-III/Ports/ARM-Cortex-M4/Generic/GNU/os_cpu_c.c:335: undefined reference to `OS_CPU_FP_Reg_Push'
D:DokumenteDropboxFH4SemesterBAK ArbeitworkspaceXMC4500_uCOSIIIDebug/../Libraries/uCOS-III/Ports/ARM-Cortex-M4/Generic/GNU/os_cpu_c.c:339: undefined reference to `OS_CPU_FP_Reg_Pop'
collect2.exe: error: ld returned 1 exit status
make: *** [XMC4500_uCOSIII.elf] Error 1

**** Build Finished ****

if I get it right, the files os_core.o and os_cpu_c.o are not linked correctly to the project. I've tried linking these object files by clicking "Properties->C/C++ Build->Settings->ARM GCC Linker->Miscellaneous->Other objects". After compiling again I get to following output:

'Building target: XMC4500_uCOSIII.elf'
'Invoking: ARM-GCC C Linker'
"C:DAVE-3.1.10ARM-GCC/bin/arm-none-eabi-gcc" -T"../XMC4500_uCOSIII.ld" -nostartfiles -L"C:DAVE-3.1.10eclipse/../CMSIS/Infineon/Lib" -L"C:DAVE-3.1.10eclipse/../Examples/Lib" -L"C:DAVE-3.1.10eclipse/../emWin/Start/GUI" -Wl,-Map,"XMC4500_uCOSIII.map" -mcpu=cortex-m4 -mthumb -g3 -gdwarf-2 -o "XMC4500_uCOSIII.elf" "@makefile.rsp" D:/Dokumente/Dropbox/FH/4Semester/BAK Arbeit/workspace/XMC4500_uCOSIII/Release/Libraries/uCOS-III/Ports/ARM-Cortex-M4/Generic/GNU/os_cpu_c.o D:/Dokumente/Dropbox/FH/4Semester/BAK Arbeit/workspace/XMC4500_uCOSIII/Release/Libraries/uCOS-III/Source/os_core.o 
arm-none-eabi-gcc: error: D:/Dokumente/Dropbox/FH/4Semester/BAK: No such file or directory
arm-none-eabi-gcc: error: Arbeit/workspace/XMC4500_uCOSIII/Release/Libraries/uCOS-III/Ports/ARM-Cortex-M4/Generic/GNU/os_cpu_c.o: No such file or directory
arm-none-eabi-gcc: error: D:/Dokumente/Dropbox/FH/4Semester/BAK: No such file or directory
arm-none-eabi-gcc: error: Arbeit/workspace/XMC4500_uCOSIII/Release/Libraries/uCOS-III/Source/os_core.o: No such file or directory
make: *** [XMC4500_uCOSIII.elf] Error 1

**** Build Finished ****

file and directory exist other than said in this error :( anybody an idea how I can solve this problem or was my first step already wrong?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...