When I try to build a program using Eclipse CDT, I get the following:
Eclipse CDT
/mingw/lib/libmingw32.a(main.o):main.c:(.text+0x106): undefined r
Try saving your .c file before building. I believe your computer is referencing a path to a file with no information inside of it.
--Had similar issue when building C projects