Gast
#3297545
Hallo zusammen, ich mache gerade meine ersten SChritte mit dem STM32F3Discovery Board. Ich versuche ein Template zu erstellen. Das klappte ja soweit auch ganz gut, bis ich zu einem Punkt gekommen bin, an dem ich einfach nicht weiter weiß. Ich benutzte Eclipse und ARM GCC. Es erscheinen als erstes folgende Fehlermeldungen: Building target: Template_Project.elf Invoking: Cross GCC Linker arm-none-eabi-gcc "-Wl,-Map=Template_Project.map" -o "Template_Project.elf" ./src/main.o ./src/stm32f30x_it.o ./src/system_stm32f30x.o ./STM32F3_Discovery/stm32f3_discovery.o ./STM32F30_StdPeriph_Library/stm32f30x_adc.o ./STM32F30_StdPeriph_Library/stm32f30x_can.o ./STM32F30_StdPeriph_Library/stm32f30x_comp.o ./STM32F30_StdPeriph_Library/stm32f30x_crc.o ./STM32F30_StdPeriph_Library/stm32f30x_dac.o ./STM32F30_StdPeriph_Library/stm32f30x_dbgmcu.o ./STM32F30_StdPeriph_Library/stm32f30x_dma.o ./STM32F30_StdPeriph_Library/stm32f30x_exti.o ./STM32F30_StdPeriph_Library/stm32f30x_flash.o ./STM32F30_StdPeriph_Library/stm32f30x_gpio.o ./STM32F30_StdPeriph_Library/stm32f30x_i2c.o ./STM32F30_StdPeriph_Library/stm32f30x_iwdg.o ./STM32F30_StdPeriph_Library/stm32f30x_misc.o ./STM32F30_StdPeriph_Library/stm32f30x_opamp.o ./STM32F30_StdPeriph_Library/stm32f30x_pwr.o ./STM32F30_StdPeriph_Library/stm32f30x_rcc.o ./STM32F30_StdPeriph_Library/stm32f30x_rtc.o ./STM32F30_StdPeriph_Library/stm32f30x_spi.o ./STM32F30_StdPeriph_Library/stm32f30x_syscfg.o ./STM32F30_StdPeriph_Library/stm32f30x_tim.o ./STM32F30_StdPeriph_Library/stm32f30x_usart.o ./STM32F30_StdPeriph_Library/stm32f30x_wwdg.o ./src/main.o: In function `main': /home/dirk/stm_projects/STM32F3_Template/Template/Debug/../src/main.c:25 2: undefined reference to `sqrt' /home/dirk/stm_projects/STM32F3_Template/Template/Debug/../src/main.c:25 5: undefined reference to `sqrt' /home/dirk/stm_projects/STM32F3_Template/Template/Debug/../src/main.c:25 7: undefined reference to `sqrt' /home/dirk/stm_projects/STM32F3_Template/Template/Debug/../src/main.c:26 2: undefined reference to `acos' /home/dirk/stm_projects/STM32F3_Template/Template/Debug/../src/main.c:26 6: undefined reference to `acos' /home/dirk/stm_projects/STM32F3_Template/Template/Debug/../src/main.c:27 3: undefined reference to `acos' /home/dirk/stm_projects/STM32F3_Template/Template/Debug/../src/main.c:27 7: undefined reference to `acos' /home/dirk/stm_projects/STM32F3_Template/Template/Debug/../src/main.c:28 5: undefined reference to `acos' ./src/main.o:/home/dirk/stm_projects/STM32F3_Template/Template/Debug/../ src/main.c:289: more undefined references to `acos' follow ./src/main.o: In function `main': /home/dirk/stm_projects/STM32F3_Template/Template/Debug/../src/main.c:31 7: undefined reference to `atan2f' Es scheine ja alles mathematische Funktionen zu sein. Math.h ist eingebunden. Nach meinen bisherigen Nachforschungen scheint dies ein Problem mit Compiler-Flags zu sein, soweit ich das verstanden habe. Allerdings habe ich keine Ahnung welche genau und wo ich die unter Eclipse eintragen muss. Ich arbeite ohne extra Makefile, das heißt alles notwendigen Einstellungen und Pfade sind in Eclipse (CDT) vorgenommen wurden.