-l librarySearch the library named library when linking. (The second alternative with the library as separate argument is only for POSIX compliance and is not recommended.)It makes a difference where in the command you write option; te linker searches and process libraries and object files in the oreder they are specified....