SFML community forums
Help => General => Topic started by: blizz on January 07, 2023, 05:27:22 am
-
I'm using Code::Blocks mingw for it, i have been added the linker settings and search directory for both (include and linker) but it sends me this error:
||=== Build: Debug in SFML W (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lsfml-graphics-d|
ld.exe||cannot find -lsfml-window-d|
ld.exe||cannot find -lsfml-system-d|
||error: ld returned 1 exit status|
||=== Build failed: 4 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
What can i do for fix it?
-
If it can't find the specified files, then they either don't exist or the path to them isn't properly specified.
Make sure it's configured under the correct project setting (e.g. debug vs release).
If in doubt, post the verbose build output: https://www.sfml-dev.org/faq.php#tr-grl-verbose-ide
-
If it can't find the specified files, then they either don't exist or the path to them isn't properly specified.
Make sure it's configured under the correct project setting (e.g. debug vs release).
If in doubt, post the verbose build output: https://www.sfml-dev.org/faq.php#tr-grl-verbose-ide
I'm trying with MSYS to compile too, but i have this error (it happends me before in other attempts)
also i check the path and everything is fine, check another options too, but it's stay happend again (I mean in code::blocks)
-
I recommend to try and solve one thing, one step at a time. If you just all sorts of random things, you'll just confuse yourself and make it harder for anyone to help you.
The Code::Blocks tutorial is pretty clear on how to setup Code::Blocks. Try to follow it precisely and also read the text, don't just look at the pictures: https://www.sfml-dev.org/tutorials/2.5/start-cb.php
If it doesn't work, provide the verbose build output: https://www.sfml-dev.org/faq.php#tr-grl-verbose-ide
You can use MSYS2 binaries, but you can't build SFML inside MSYS2 as it emulates a Linux environment, while actually still running on Windows. SFML's CMake configuration, hasn't been adapted for this.