Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Thank you for your answer even if I don't get where I should do this command in eclipse. By chance would anyone know if there is a toolchain specifically bundled for STM32 family? Commented Nov 7, 2012 at 8:43
  • To answer your question I did not expect to see printf() anywhere. I am just trying to do a simple project and compile and link it to be sure that this toolchain will be usable later for my project. By the way if it is a library problem why do I get the error only in debug mode and not in release mode? Commented Nov 7, 2012 at 8:57
  • Since you though about printf I just comment all both the printf in my project and here is what happen: I still have error even if it is just one: 'Building target: test3' 'Invoking: Cross GCC Linker' arm-none-eabi-gcc -o"test3" ./main.o ./test3.o c:/program files/gnu tools arm embedded/4.6 2012q4/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): In function exit': exit.c:(.text.exit+0x2c): undefined reference to _exit' collect2: ld returned 1 exit status make: *** [test3] Erreur 1 Which is exactly the same error as the first one I got before Commented Nov 7, 2012 at 9:12
  • Well, not exactly, I'd say - does it still complain about e.g. _write()? Anyway, _exit() is also a part of libgloss referenced from newlib, you need to either provide some implementation, or give up with standard library. Let me update my answer. Commented Nov 7, 2012 at 9:26
  • Actually I managed to add the rdimon library and it links fine. Thank you very much. I just now need to be able to generate a elf file which is not the case currently and i do not know why Commented Nov 7, 2012 at 9:34