Linker error are because there are some errors in your Main Program and not in the code given above.