This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

使用静态链接库



在使用静态链接库的工程编译时,遇到如下问题:

'Building target: cameratest.out'
'Invoking: GNU Linker'
"E:/CCSinstallation/ccs7/ccsv7/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -mtune=cortex-a9 -marm -Dam4379 -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -mfloat-abi=hard -Wl,-Map,"cameratest.map" -L"E:/CCSinstallation/ccs7/workspace1/demo/sdk/starterware/binary/device/lib/am43xx-evm/a9/ccs/am43xx_debug" -L"E:/CCSinstallation/ccs7/workspace1/demo/sdk/starterware/device/ccs/am43xx_debug" -L"E:/CCSinstallation/ccs7/workspace1/cameratest" -Wl,--defsym,STACKSIZE=0x18000 -Wl,--defsym,HEAPSIZE=0x400 -o"cameratest.out" "./main.o" "./startup_ARMCA9.o" -Wl,-T"../AM437x.lds"  -Wl,--start-group -llibdevice.a -Wl,--end-group   ../libdevice.a 
makefile:144: recipe for target 'cameratest.out' failed
e:/ccsinstallation/ccs7/ccsv7/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -llibdevice.a
collect2.exe: error: ld returned 1 exit status
gmake[1]: *** [cameratest.out] Error 1
gmake: *** [all] Error 2
makefile:140: recipe for target 'all' failed

**** Build Finished ****

找不到静态链接库,但在Properties设置里面已经加入了静态链接库的地址,

请问是否还需在其他地方设置,或者设置方式存在问题?

谢谢指教!