In GCC, the -l flag refers to a static library. When you have created your project, you’ve probably let the default choice for the low-level drivers.
In your case, “As static external libraries” was selected which means that the HAL drivers and the chip headers has been put in the static library project “rc2_hal_lib”. This way is useful if you have many projects on the same board, it avoids to rebuild the HAL drivers for each project.
The error seems to tell the rc2_hal_lib has not been successfully built. Please, click on this project in the “Project Explorer” view to see the GCC console output and to know the real error.