SFML community forums

Help => General => Topic started by: lightspot21 on July 06, 2018, 10:58:15 am

Title: Linking the SFML modules in Code::Blocks Linux
Post by: lightspot21 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.
Title: Re: Linking the SFML modules in Code::Blocks Linux
Post by: Laurent 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.
Title: Re: Linking the SFML modules in Code::Blocks Linux
Post by: lightspot21 on July 07, 2018, 10:16:29 am
Well, here's a screenshot of what appears to be available on my distro's repos:
(http://i.imgur.com/KvQkgsd.png)

Any ideas on what packages should I be looking to install?
Title: Re: Linking the SFML modules in Code::Blocks Linux
Post by: Laurent on July 08, 2018, 03:04:43 pm
You have everything you need, just link to those libraries instead of static / debug ;)