The compiler you use must 100% match the one used to build the SFML binaries.
If you use pre-compiled binaries from the download page, you'll find the used compilers linked on that page.
If you want to use your own compiler, you can also build from source, as was pointed out in the other thread.