Where can I get the DW2 version?
TDM website has both versions (the DW2 version is not provided as a bundled package, though).
You can also simply install the packaged archive provided in the SFML tutorial for Code::Blocks.
the undefined reference error is gone but I think it was replaced by a bunch of _Unwind_Resume and __gxx_personality_v0 errors
So you probably didn't properly compile SFML, or you're still using the old one. Can you describe what you did?