You added the poly macros in the wrong place, your compiler doesn't know where the main function is located.
Show us your main.cpp, especially the part where the function "main" is referenced. Make sure to also include the lines before the function.