0 Members and 1 Guest are viewing this topic.
You didn't link ws2_32 as mentioned in the tutorial.
Check the Code::Blocks tutorial: https://www.sfml-dev.org/tutorials/2.4/start-cb.php
Additionally, because Code::Blocks makes use of GCC, the linking order does matter. This means that libraries that depend on other libraries have to be added to the library list before the libraries they depend on
As mentioned in the tutorial, link order matters. You've put ws2_32 before the sfml-network module, but sfml-network depends on ws2_32, thus it must come first.