I'm new to the world of building. I've always let my IDE take care of it for me, but now I'm working with autotools and command line.
Could someone explain the difference between gcc's
-l LIBNAME - Search for library LIBNAME
and
-L DIRECTORY - Add DIRECTORY to library search path
Can the same linking be accomplished with either and it's just a style preference which gets used? Or is there actually something seriously different happening?
Thanks,
Andrew