There are twopossible solutions I see:
1. right click on your cpp-files in the management pane, chose Properties, go to the Build tab and uncheck the
Link file checkbox,
2. make a copy of the Gnu gcc toolchain ("Settings -> Compiler and debugger -> Global compiler settings -> GNU GCC Compiler -> Copy"), remove the linker executable in the toolchain executables tab and use this compiler for your project.