I appreciate your help, sorry I had to leave for a bit and do some
adulting lol
This Build information in the two spoilers below is from the the suggestion, done
exactly as stated. I've formated to the
sfml-<library>-d in Linker and I've removed the
\ from the end of the Search Directories (include and lib folder paths.) I tested to see if swapping them for
/ made a difference but it doesn't seem to.
||=== Build: Debug in SFML (compiler: TDM-GCC-32) ===|
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), 6 second(s)) ===|
-------------- Build: Debug in SFML (compiler: TDM-GCC-32)---------------
g++.exe -Wall -g -std=c++14 -IC:\SFML\2.5.1\include -IC:\SFML\2.5.1 -c C:\SFML\2.5.1\src\main.cpp -o obj\Debug\src\main.o
g++.exe -LC:\SFML\2.5.1\lib -o bin\Debug\SFML.exe obj\Debug\src\main.o -lsfml-graphics-d -lsfml-window-d -lsfml-system-d
C:/TDM-GCC-32/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-graphics-d.a when searching for -lsfml-graphics-d
C:/TDM-GCC-32/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib\libsfml-graphics-d.a when searching for -lsfml-graphics-d
C:/TDM-GCC-32/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-graphics-d.a when searching for -lsfml-graphics-d
C:/TDM-GCC-32/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-graphics-d
C:/TDM-GCC-32/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-window-d.a when searching for -lsfml-window-d
C:/TDM-GCC-32/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib\libsfml-window-d.a when searching for -lsfml-window-d
C:/TDM-GCC-32/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-window-d.a when searching for -lsfml-window-d
C:/TDM-GCC-32/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-window-d
C:/TDM-GCC-32/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-system-d.a when searching for -lsfml-system-d
C:/TDM-GCC-32/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib\libsfml-system-d.a when searching for -lsfml-system-d
C:/TDM-GCC-32/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\SFML\2.5.1\lib/libsfml-system-d.a when searching for -lsfml-system-d
C:/TDM-GCC-32/bin/../lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-system-d
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 6 second(s))
4 error(s), 0 warning(s) (0 minute(s), 6 second(s))
Behind the scene, I've checked filepaths, made sure the compiler (TDM GCC 5.1) was good, made sure the proper files were in compiler's bin/ folder, etc. It seems to all check out.
So one thing I have discovered is it seems Code::Blocks seems to need the filepaths to be dictated by manually selecting them with the mouse. When the project is built with these settings, it unlocks
20 shiny errors of hope. In other words, I have to do...
- "lib\libsfml-graphics-d.a"
- "lib\libsfml-window-d.a"
- "lib\libsfml-system-d.a"
...and I get...
-------------- Build: Debug in SFML (compiler: TDM-GCC-32)---------------
g++.exe -Wall -g -std=c++14 -IC:\SFML\2.5.1\include -IC:\SFML\2.5.1 -c C:\SFML\2.5.1\src\main.cpp -o obj\Debug\src\main.o
g++.exe -LC:\SFML\2.5.1\lib -o bin\Debug\SFML.exe obj\Debug\src\main.o lib\libsfml-graphics-d.a lib\libsfml-window-d.a lib\libsfml-system.a
obj\Debug\src\main.o: In function `main':
C:/SFML/2.5.1/src/main.cpp:7: undefined reference to `__imp__ZN2sf6StringC1EPKcRKSt6locale'
C:/SFML/2.5.1/src/main.cpp:7: undefined reference to `__imp__ZN2sf9VideoModeC1Ejjj'
C:/SFML/2.5.1/src/main.cpp:7: undefined reference to `__imp__ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE'
C:/SFML/2.5.1/src/main.cpp:8: undefined reference to `__imp__ZN2sf11CircleShapeC1Efy'
C:/SFML/2.5.1/src/main.cpp:9: undefined reference to `__imp__ZN2sf5Color5GreenE'
C:/SFML/2.5.1/src/main.cpp:9: undefined reference to `__imp__ZN2sf5Shape12setFillColorERKNS_5ColorE'
C:/SFML/2.5.1/src/main.cpp:12: undefined reference to `__imp__ZNK2sf6Window6isOpenEv'
C:/SFML/2.5.1/src/main.cpp:15: undefined reference to `__imp__ZN2sf6Window9pollEventERNS_5EventE'
C:/SFML/2.5.1/src/main.cpp:19: undefined reference to `__imp__ZN2sf6Window5closeEv'
C:/SFML/2.5.1/src/main.cpp:22: undefined reference to `__imp__ZN2sf5ColorC1Ehhhh'
C:/SFML/2.5.1/src/main.cpp:22: undefined reference to `__imp__ZN2sf12RenderTarget5clearERKNS_5ColorE'
C:/SFML/2.5.1/src/main.cpp:23: undefined reference to `__imp__ZN2sf12RenderStates7DefaultE'
C:/SFML/2.5.1/src/main.cpp:23: undefined reference to `__imp__ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'
C:/SFML/2.5.1/src/main.cpp:24: undefined reference to `__imp__ZN2sf6Window7displayEv'
C:/SFML/2.5.1/src/main.cpp:7: undefined reference to `__imp__ZN2sf12RenderWindowD1Ev'
C:/SFML/2.5.1/src/main.cpp:7: undefined reference to `__imp__ZN2sf12RenderWindowD1Ev'
obj\Debug\src\main.o: In function `sf::CircleShape::~CircleShape()':
C:/SFML/2.5.1/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `__imp__ZTVN2sf11CircleShapeE'
C:/SFML/2.5.1/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `__imp__ZTVN2sf11CircleShapeE'
C:/SFML/2.5.1/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `__imp__ZN2sf5ShapeD2Ev'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 3 second(s))
20 error(s), 0 warning(s) (0 minute(s), 4 second(s))
And that's all I've got for now.
NOTE: These are the next steps, then I'll be updating the topic.
- Uninstall / reunstall Code::Blocks 20.03, just to rule out faulty IDE / components.
- Uninstall / reinstall TDM 5.1.0 compiler, just to rule out if it's faulty or not.
- Replacing the SFML/2.5.1/ files with fresh download, just to rule out it being faulty.
- Triple check filepaths of things to make sure things are where things should be.
- Stage a video from the "correct" state of configuration, then move forward experimenting with the results of different (purposely "wrong") settings and compilers to see if anything works.
EDIT: OK, so it looks like we're good now. I did have to uninstall / reinstall something (IDE and/or Compiler). Thank you for your help, we can stick a fork in it now