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*

5
  • Format the sources into something readable, please! Provide the linker command line, more details about your toolchain (I can only guess it's Code Sourcery/Mentor toolchain), etc. Commented Nov 5, 2012 at 16:03
  • I edited my question I am really new about all of that so I don't really know the information you need to answer the question, if you need more tell me I will edit again Commented Nov 5, 2012 at 16:15
  • If quoting a file's name the spaces do not need to be escaped: So it should be either ... -l"C:/Program Files/GNU Tools ARM Embedded/4.6 2012q4/arm-none-eabi/lib/armv7-m/libc.a" or ... -lC:/Program\ Files/GNU\ Tools\ ARM\ Embedded/4.6\ 2012q4/arm-none-eabi/lib/armv7-m/libc.a Commented Nov 5, 2012 at 16:53
  • Ok but I don't know how to change it and anyway when we read the error it is: ld.exe: cannot find -lC:/Program\ Files/GNU\ Tools\ ARM\ Embedded/4.6\ 2012q4/arm-none-eabi/lib/armv7-m/libc.a which is your second suggestion then I think the command line has a good syntax even if it does not work no? Commented Nov 5, 2012 at 17:01
  • Depending on your code, you might want to stub out those functions... Here they are: extern "C" { void _exit( int status ) { while (1); } unsigned int _getpid() { return 0; } int _kill( int id, int sig ) { return 0; } void _sbrk( int id) {} int _fstat (int fd, void* buf) { return 0; } int _write( int fd, char *buf, int count ) { return 0; } int _read( int fd, char *buf, int count ) { return 0; } int _lseek( int fd, int count ) { return 0; } int _close( int fd ) { return 0; } int _isatty( int fd ) { return 0; } } Commented Aug 28, 2015 at 20:43