2018-05-24 11:40 PM
Hi
I want to know how to add external lib to the folder for AC6 System workbench IDE.
What i did till now?
I have added the Lib source file name and the folder locations in the below path
Project Properties --> C/C++ Build --> Tool settings --> MCU GCC linker --> Libraries
And the same file reflected on to the project properties
Project Properties --> C/C++ General --> Paths and Symbols --> Libraries and in Libraries path.
When i made build i end up in to the linker stage failed.
c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../
arm-none-eabi/bin/ld.exe: cannot find -llibalgobsec.lib
collect2.exe: error: ld returned 1 exit status
makefile:35: recipe for target 'yt.elf' failed
make: *** [yt.elf] Error 1
How to fix this build issue ?
Thanks
Phani
2018-05-27 09:24 AM
Using the -l option will add the 'lib' prefix or your library name automatically. For example: to link with the libm.a math library you simply specify -lm. The lib prefix and .a suffix will be added automatically. If the library is not in a default library directory you also have to add -L... where ... stands for the directory path where the library is.
2018-05-31 01:17 AM
hi
I want to add .lib file not .a file.
i have tested with .a file its working fine.
i want to add '.lib', how i need to add?
Thanks
Phani
2018-05-31 03:28 AM
When I compile the STM32L4R5ZI BME680 libary, I got the error message of use VFP register arguments,
Can anyone let me know how to fix inside the AC6 SW workbench?
Thanks
Phani
2018-05-31 06:46 AM
2018-05-31 07:44 AM
Hi
phanirajkiran.ma
,Please try to add “-mfpu=fpv4-sp-d16 -mfloat-abi=hard�? in the Miscellaneous Settings of the C and C++ compilers , it may resolve your issue!
-Nesrine-