1
General / Re: How to link everything statically
« on: May 29, 2023, 05:26:01 pm »Wrong linking order isn't it? It's supposed to be dependencies last (dependencies are listed in the link provided by hapax)Oh, it worked!
You're right, all i had to do is assemble the dependencies in the right order:
g++ Shader.cpp -Iinclude -Llib -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lwinmm -lopengl32 -lgdi32 -lfreetype -o Shader.exe
And silly me was just about to compile all of sfml on my own to check if there's some kind of issue with compatibility...Thank you both so much for the help! Aside from resolving my issue it also pushed me to do some research and learn how exactly the compiler works.