As an entry-level Linux user, I have used simple
(1) -I (uppercase i) The compiler searches for header files in the path specified by -I.
(2) -L (uppercase l) It means: the compiler searches for the library file in the path specified by -L. Generally, you can use -l to specify multiple library files at once after -L.
(3) -l (lowercase l) It means: the compiler searches the system default path. If it cannot find the library, it searches the current directory. If it cannot find the library in the current directory, it searches the path set to the top of the environment variables such as This example uses the gunzip library, the library file name is libz.so, and the library name is z. It is easy to see that removing the first lib and the last .so of the library file name gives you the library name. Summarize This is the end of this article about the detailed explanation of the functions of -I (uppercase i), -L (uppercase l) and -l (lowercase l) when compiling g++ programs under Linux. For more relevant content about Linux g++ compiler programs, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Calling Baidu Map to obtain longitude and latitude in Vue
Table of contents 1. Props Parent >>> Ch...
Table of contents 1. Script vim environment 2. Ho...
1 Stored Procedure 1.1 What is a stored procedure...
*** Example of setting the style of a hyperlink a...
How to determine whether a variable is empty in s...
css3 background image related Compatibility: IE9+...
How to install flash in Linux 1. Visit the flash ...
The virtual machine is installed on the host mach...
1. Introduction First of all, we need to answer a...
This article uses examples to explain the princip...
System performance expert Brendan D. Gregg update...
Table of contents 1. Docker Image 2. Create an in...
Let’s start the discussion from a common question...
1. ip_hash: ip_hash uses a source address hash al...
Table of contents Preface: 1. Create a project wi...