Hello
I've tried to compile some code on an offline compiler because I've done an application with mbed for my thesis and I'd like the code to be independent from mbed compiler.
I use GNU ARM gcc compiler on Eclipse. Everything works fine for basic code, but the problem is that my code uses some standard C library functions. If I call a basic function, like printf, the compiler offers a huge pile of errors.
Description Location Type
undefined reference to `_close' line 0 C/C++ Problem
undefined reference to `_fstat' line 0 C/C++ Problem
undefined reference to `_isatty' line 0 C/C++ Problem
undefined reference to `_lseek' line 0 C/C++ Problem
undefined reference to `_read' line 0 C/C++ Problem
undefined reference to `_sbrk' line 0 C/C++ Problem
undefined reference to `_write' line 0 C/C++ Problem
I'm suspecting there is something wrong with the linker file since these libraries must work on LPC1768 - Afterall, these standard functions work in mbed online compiler!
I'm a complete newbie on ARM and gcc so any advice is welcome.
Hello
I've tried to compile some code on an offline compiler because I've done an application with mbed for my thesis and I'd like the code to be independent from mbed compiler.
I use GNU ARM gcc compiler on Eclipse. Everything works fine for basic code, but the problem is that my code uses some standard C library functions. If I call a basic function, like printf, the compiler offers a huge pile of errors.
I'm suspecting there is something wrong with the linker file since these libraries must work on LPC1768 - Afterall, these standard functions work in mbed online compiler!
I'm a complete newbie on ARM and gcc so any advice is welcome.