1
General / Re: Cant Compile With Static libs.
« on: January 30, 2021, 01:08:49 pm »
I managed to figure it out. Thanks everyone!
This worked:
*a bit confusing nonetheless.
This worked:
g++ -std=c++20 -DSFML_STATIC -O2 -no-pie -fno-pie -I/home/uzzer/LIB/SFML-2.5.1/include -o main main.cpp -L/home/uzzer/LIB/SFML-2.5.1/lib -L/usr/lib/x86_64-linux-gnu -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lGLU -lGL -lX11 -lXrandr -ludev -lpthread
*a bit confusing nonetheless.