Codeblocks cannot find compiler3/20/2023 ![]() ![]() The tutorial should mention that they might find the libgcc_s_seh-1.dll as one of three possible options. At this point they'll probably just cross their fingers and hope that they have the SJLJ version, because that's what you suggest. If an attentive beginner reader is following your tutorial, they won't be able to find "libgcc_s_sjlj-1.dll" or "libgcc_s_dw2-1.dll" in the MinGW folder (only "libgcc_s_seh-1.dll"). This is misleading, because the default compiler that comes with the default (64-bit) version of CodeBlocks is the "SEH" version. If MinGW was installed along with Code::Blocks, you probably have an SJLJ version." If you are unsure, check which of the libgcc_s_sjlj-1.dll or libgcc_s_dw2-1.dll files is present in your MinGW/bin folder. select the package which corresponds to the version that you use. "There are multiple variants of GCC for Windows. ![]() Please update the CodeBlocks tutorial, it has a very misleading tooltip: I've come to this thread because it is what comes up if you Google 'code blocks sfml cannot find lib'. 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) We are going to do this on a global basis so the library will be available to all of our projects. I have double, tripple, quadruple checked to make sure I got the linker settings right. Steps 3 and 4 - Tell the compiler where to find headers and library files. (I get these same 4 lines for the rest of the things I tried to link) I have tried this with both the "GCC 5.1.0 TDM (SJLJ)" and "GCC 7.3.0 MinGW (DW2)" versions,Īnd tried the ladder with both the 64 and 32bit versions of Code::Blocks.Ĭ:/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Ĭ:/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Ĭ:/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 (It's always the compilers that get me, I'm surprised I was even able to build a Hello World program ) I followed a tutorial, but when it didn't work I tried compiling the source like the video said,īut of course with my luck CMake couldn't find the files I was trying to use and gave an error. Then inside the settings window, navigate to the tab titled Toolchain. ![]() The files I'm trying to link, like sfml-graphics-d, sfml-audio-d, etc. Head on to the Settings drop-down menu and select Compiler. also open a console there and run something like 'gfortran.exe -v' to makes sure it is runable. You've probably heard this one a million times, but in the IDE I'm using (Code::Blocks), it cannot find Anyway let's start: first make sure that the compiler is realy there, or in the bin subdirectory. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |