Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Linking the SFML modules in Code::Blocks Linux  (Read 1293 times)

0 Members and 1 Guest are viewing this topic.

lightspot21

  • Newbie
  • *
  • Posts: 3
    • View Profile
Linking the SFML modules in Code::Blocks Linux
« on: July 06, 2018, 10:58:15 am »
Hello,

I've been trying to link the SFML 2.4 modules via Project - Build Options - Debug tab - Linker options, but all I get when compiling is 'cannot find -lsfml-graphics-d', 'cannot find -lsfml-window-d', 'cannot find -lsfml-system-d', 'error: ld returned 1 exit status'.

The same happens with the 's'-suffixed ones under the Release tab, for which I've linked all dependencies and defined the SFML_STATIC macro in #defines.

The project compiles correctly if I don't use any suffixes. Could someone help me on this, as the Code::Blocks guide is for Windows and library linking is not the same?

Thanks in advance.

PS: If it's any help, I'm using BunsenLabs Helium (Debian derivative) as my distro. The library is installed from Debian's repos.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Linking the SFML modules in Code::Blocks Linux
« Reply #1 on: July 06, 2018, 11:12:15 am »
Have you checked which libraries were actually installed? I wouldn't be suprised if there was only dynamic release ones, this is typical on Linux.
Laurent Gomila - SFML developer

lightspot21

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Linking the SFML modules in Code::Blocks Linux
« Reply #2 on: July 07, 2018, 10:16:29 am »
Well, here's a screenshot of what appears to be available on my distro's repos:


Any ideas on what packages should I be looking to install?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Linking the SFML modules in Code::Blocks Linux
« Reply #3 on: July 08, 2018, 03:04:43 pm »
You have everything you need, just link to those libraries instead of static / debug ;)
Laurent Gomila - SFML developer

 

anything