You have declared a function, void drawRectangle (), and you have called that function. The only similar function you have defined is void drawRectangle (int, int). The linker is unable to find the one you actually call.