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 Preface concept Stabilization d...
This article introduces the sample code of CSS pi...
Preface We all know that the QR codes in official...
The previous article introduced the installation ...
1. Install nginx in docker: It is very simple to ...
I have recently been developing a visual operatio...
System: Ubuntu 16.04LTS 1\Download mysql-5.7.18-l...
MySQL 8.0.3 is about to be released. Let’s take a...
Table of contents 1. Test environment 1.1 Hardwar...
Table of contents 1. The simplest example 2. Cust...
This article uses an example to describe how to a...
Table of contents Start Docker Stop Docker Python...
Mysql is a popular and easy-to-use database softw...
1. Environment version Docker version 19.03.12 ce...
I was bored and sorted out some simple exercises ...