You've probably heard this one a million times, but in the IDE I'm using (Code::Blocks), it cannot find
the files I'm trying to link, like sfml-graphics-d, sfml-audio-d, etc.
I followed a tutorial, but when it didn't work I tried compiling the source like the video said,
but of course with my luck CMake couldn't find the files I was trying to use and gave an error.
(It's always the compilers that get me, I'm surprised I was even able to build a Hello World program
)
I have tried this with both the "GCC 5.1.0 TDM (SJLJ)" and "GCC 7.3.0 MinGW (DW2)" versions,
and tried the ladder with both the 64 and 32bit versions of Code::Blocks.
The build log confuses me even more...
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\_Libraries\SFML-2.5.1\lib/libsfml-graphics-d.a when searching for -lsfml-graphics-d
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\_Libraries\SFML-2.5.1\lib\libsfml-graphics-d.a when searching for -lsfml-graphics-d
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\_Libraries\SFML-2.5.1\lib/libsfml-graphics-d.a when searching for -lsfml-graphics-d
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-graphics-d
(I get these same 4 lines for the rest of the things I tried to link)
I have double, tripple, quadruple checked to make sure I got the linker settings right.
I also tried to set my project's build target to "release", but I get the same errors (minus the "-d" at the end of the file names)