Linker errors on system calls

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by mawg on Mon Dec 05 23:41:45 MST 2011
I had a nice litle s/w only project which I built using Cygwin in Netbeans under Windows 7.

Then I learened that I would be using an LPC 1700 board for development, so I D/Led the Espesso clipse IDE and dropped my existing code inte it.

The only errors I am getting are to do with system calls, such as  ...

f:/dropbox/programs/lpcxpresso/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-exit.o): In function `exit':
exit.c:(.text+0x1c): undefined reference to `_exit'
f:/dropbox/programs/lpcxpresso/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-fstatr.o): In function `_fstat_r':

While I would epxect it to work right out of the box, I suspect that I need a #define somewhere.

Any idea? I asure that this is a stoopid n00b error, but I can't find an answer by googling.

Thanks in advance for any help.