SFML community forums

Help => General => Topic started by: RandomEngineer on May 08, 2020, 01:38:57 pm

Title: Using SFML via conan produces a linker error
Post by: RandomEngineer on May 08, 2020, 01:38:57 pm
Hi everyone!

Did anyone of you successfully get SFML to work via conan? I recently tried it and surprisingly got a linker error. SFML builds and runs fine on my system (Linux Mint 18.3 with GCC 9), but apparently not through conan. Does anyone of you have an idea what the problem might be?

This is the error I'm getting:
/home/******/.conan/data/sfml/2.5.1/bincrafters/stable/package/4f882f95684146ffd495dda9058c21e895175590/lib/libsfml-window-d.so: Undefined reference to `reallocarray'
collect2: error: ld returned 1 exit status

I'd highly appreciate if anyone of you knows what's going on there. Thanks in advance!
Title: Re: Using SFML via conan produces a linker error
Post by: eXpl0it3r on May 15, 2020, 11:15:42 am
Might simply be that the pre-built binary was created for a different distro. Maybe you can force a rebuild of the recipe?