Any reason you're using CSFML instead of SFML?
The linking order is not fully correct, csfml-system should come at the end.
Not sure if that's a "feature" of the msys2 provided compiler, but it looks like it's looking for WinMain instead of just main. You may want to check if there's a way to disable that behavior in the libmingw32 library.