Just installed 2.0 that error is gone but I get a new one:
/tmp/cc3VtzXx.o:test.cpp:function main: error: undefined reference to 'sf::Window::create(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, sf::ContextSettings const&)'
collect2: ld returned 1 exit status
I put in the same terminal commands as always