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
To summarize the above post by Cheers and hth. - Alf, Make sure you have main() or WinMain() defined and g++ should do the right thing.
main()
WinMain()
My problem was that main() was defined inside of a namespace by accident.