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
My situation was that I did not have a main function.