man wrote: |
---|
-llibrary Search the library named library when linking. The linker searches a standard list of directories for the library, which is actually a file named liblibrary.a. The linker then uses this file as if it had been specified precisely by name. The directories searched include several standard system directories plus any that you specify with -L. The only difference between using an -l option and specifying a file name is that -l surrounds library with lib and .a and searches several directories. |
g++ foo.o $(pkg-config --libs sfml-all) |