I have recently downgraded from windows 10 back to 8.1, and ran into some trouble while compiling a project i was working on windows 10.
Build Errors:
||=== Build: Debug in testgame (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lfreetype|
ld.exe||cannot find -ljpeg|
ld.exe||cannot find -lopenal32|
ld.exe||cannot find -lflac|
ld.exe||cannot find -lvorbisenc|
ld.exe||cannot find -lvorbisfile|
ld.exe||cannot find -lvorbis|
ld.exe||cannot find -logg|
||error: ld returned 1 exit status|
||=== Build failed: 9 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Build Log:
-------------- Build: Debug in testgame (compiler: GNU GCC Compiler)---------------
g++.exe -LC:\prog\SFML\2.4.1S64\lib -o bin\Debug\testgame.exe obj\Debug\BodyGraphicsSystem.o obj\Debug\Button.o obj\Debug\Callback.o obj\Debug\Configuration.o obj\Debug\EntityFactory.o obj\Debug\EntityManager.o obj\Debug\GameWorld.o obj\Debug\InputKeyboard.o obj\Debug\InputSystem.o obj\Debug\main.o obj\Debug\MainProgram.o obj\Debug\Observer.o obj\Debug\PhysicsSystem.o obj\Debug\ResourceManager.o obj\Debug\StateIngame.o obj\Debug\StateLocalMenu.o obj\Debug\StateManager.o obj\Debug\StatePongMainMenu.o obj\Debug\WindowHandler.o -static -lsfml-graphics-s -lsfml-window-s -lsfml-audio-s -lsfml-system-s -lopengl32 -lfreetype -ljpeg -lwinmm -lgdi32 -lopenal32 -lflac -lvorbisenc -lvorbisfile -lvorbis -logg
C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lfreetype
C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ljpeg
C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lopenal32
C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lflac
C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lvorbisenc
C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lvorbisfile
C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lvorbis
C:/Program Files/mingw-w64/x86_64-6.3.0-win32-seh-rt_v5-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -logg
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
9 error(s), 0 warning(s) (0 minute(s), 0 second(s))
I compile SFML with CMake statically. I tried the library i used on windows 10, but got the same errors.
I get the same errors with the sample program in the tutorial too.