2019-05-16 05:03 AM
I am working on STM32CubeIDE and i try to compiling STemWin for first time.
When i Build the proyect the next error occur.
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:42: test_02_adc_00.elf] Error 1
The complete error is on capture (phat_and_symbols_04.jpeg) or below
13:25:53 **** Incremental Build of configuration Debug for project test_02_adc_00 ****
make -j4 all
arm-none-eabi-gcc -o "test_02_adc_00.elf" @"objects.list" -l"C:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/GUI_X.c" -l"C:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/GUIConf.c" -l"C:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/ILI9328.c" -l"C:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/LCDConf.c" -l"C:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Debug/Drivers/STemWin/Config/GUI_X.c" -mcpu=cortex-m3 -T"C:\Users\leoab\STM32CubeIDE\test_02\test_02_adc_00\STM32F103C8TX_FLASH.ld" --specs=nosys.specs -Wl,-Map="test_02_adc_00.map" -Wl,--gc-sections -static -L"C:\Users\leoab\STM32CubeIDE\test_02\test_02_adc_00\Debug\Drivers\STemWin\Config" -L"C:\Users\leoab\STM32CubeIDE\test_02\test_02_adc_00\Drivers\STemWin\Config" --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
c:\st\stm32cubeide_1.0.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: cannot find -lC:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/GUI_X.c
c:\st\stm32cubeide_1.0.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: cannot find -lC:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/GUIConf.c
c:\st\stm32cubeide_1.0.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: cannot find -lC:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/ILI9328.c
c:\st\stm32cubeide_1.0.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: cannot find -lC:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Drivers/STemWin/Config/LCDConf.c
c:\st\stm32cubeide_1.0.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: cannot find -lC:/Users/leoab/STM32CubeIDE/test_02/test_02_adc_00/Debug/Drivers/STemWin/Config/GUI_X.c
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:42: test_02_adc_00.elf] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.
13:25:55 Build Failed. 1 errors, 0 warnings. (took 2s.90ms)
In the Propieties-> Path and Symbols I was try to configure but not work.
The what i do wrong?
thank in advance..!
The target system is a STM32F103C8
My OS is Win10.
And work with ST-LINK
2020-04-07 05:14 PM
Hi,
I am getting similar kind of error.
Any help with it would be appreaciated
Thank you,
2020-04-07 08:41 PM
Those files are not libraries, they are source files. You'll need to mark the directory as a source directory, or similar, so they are compiled along with everything else. Alternatively, move them into your source directory.
2020-04-08 03:36 PM
Attached screenshot of my error logs.
The path has already been added. Attached the screenshot below
Thank you for the help!!