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
This database query statement is one of 50 databa...
The installation information on the Internet is u...
Table of contents Problem Overview Problem Reprod...
This article example shares the specific code of ...
The Kubernetes team recently announced that it wi...
ps: The environment is as the title Install possi...
Table of contents 1. Check the MySQL status in th...
This article shares a blinds special effect imple...
docker-compose.yml version: '2' services:...
This article shares the installation tutorial of ...
In writing styles, we can often see this situatio...
Keepalived installation: cd <keepalived_source...
Table of contents 1 The role of Apache 2 Apache I...
Today we discussed the issue of what the margin v...
Preface Before talking about covering index, we m...