(1) use g++ When compiling a program ,-l And -L What do you mean

http://bbs.chinaunix.net/thread-107364-1-1.html  Thanks to the author

-l

Express : Compiler to system default path search , If you can't find it , To current directory , If the current directory cannot be found , Then to LD_LIBRARY_PATH Wait for the path to the top of the environment variable to find , If you can't find , Then the compiler prompts that the library cannot be found .
-L
Express : Compiler according to -L Find the library file in the specified way , In general -L You can use it all at once -l Specify multiple library files .
-I
Express : Compiler according to -I Search the header file in the specified way .

linux Compile more related articles on related knowledge

  1. linux Compile related commands

    One . Compile executable g++ –c Hello.cpp   Compile the file , Generate target file Hello.o g++ Hello.o –o a.out   Link and rename to executable a.out g++ Hello.cc  ...

  2. linux Knowledge of signal processing

      Because we have to deal with the exit signals of multiple subprocesses in the recent project , Lead to improper procedures core The situation of , Today I spent some time reading about linux Signal processing blog . To sum up :( Knowledge without practice ) linux There are two kinds of signals , A kind of reality ...

  3. Linux Epoll Related knowledge

    Actually in Linux Design concurrent network program under , There is no lack of methods , For example, the typical Apache Model (Process Per Connection, abbreviation PPC),TPC(Thread PerConnection) Model , as well as ...

  4. C# Compilation related knowledge

    C# Code compiled into MSIL Code . When the user compiles a .NET The program , The compiler translates the source code into a set that can be effectively converted to native code and independent of CPU Instructions . When these instructions are executed , real time (JIT) The compiler translates them into CPU Specific code . from ...

  5. Linux Knowledge in the field (atexit(),fork(), Sticky bits )

    1.atexit() function Function name : atexit The header file :#include<stdlib.h> work can : Register termination function ( namely main The function that is called after execution ) use Law : int atexit(v ...

  6. &lt; Independent projects - Text mining &gt; - 2016/10/25 First of all - &lt;Linux Relevant knowledge preparation &gt;

    < Independent projects -   Text mining > The background of the project ,TODO Direction . One .Ubuntu Environment configuration Host system :Windows 7 SP1  64 Bit operating system | i5-4210 CPU | ...

  7. linux Knowledge of creating daemons

    linux Knowledge of creating daemons http://www.114390.com/article/46410.htm linux Knowledge of creating daemons , This article mainly introduces linux Related to creating daemons ...

  8. Linux Introduction to installation and related knowledge .

    One .VMware Virtual machine installation and use 1.1.VMware brief introduction VMware It's a virtual PC Software for , Can be in the existing fuck Create a new hardware environment on the system , It's equivalent to a simulation Make a new one PC. In order to achieve the real... On a machine ...

  9. Linux Related knowledge notes

    Quagga To be in linux Compile and configure to run , all , Learn a little linux Basic knowledge of . Installed Ubuntu, user name linux, password 1 Can make Ubuntu Of IP Forward capability , Need modification etc/sysctl.conf and ...

Random recommendation

  1. Why? &quot;auto a = 1;&quot; stay C Language can be compiled through ?

    reference : here It reminds me of a book I read before , int i; In fact, it is equivalent to auto int i; Expressed as a local variable This should be related to static It's relative ?

  2. Expression Blend4 Experience sharing : Text announcement seamless cycle scrolling effect

    This time share a seamless circular scrolling effect similar to news bulletin board , I believe many projects will be applied to this effect . Before I also Baidu a bit , Some on the Internet Silverlight Text or picture scrolling effect , It's all rolled at one time , If you want to roll seamlessly , Most of them want to ...

  3. AutoCAD .NET Secondary development ( Four )

    stay CAD in , Attribute information generally exists in the form of annotation , But when the content of attribute data is large , Display becomes a problem . Extended attributes (Xdata) Can solve this problem , Like the south Cass That's what I've used in my life . We often use Lisp To read the operation extension properties . check ...

  4. node Determine if the file directory exists

    'use strict'; // This is a simple application var path = require('path'); var fs = require("fs") ; global.l = ...

  5. Ubuntu Next LaTex Chinese environment installation and configuration

    Reprinted from :http://www.linuxidc.com/Linux/2012-06/62456.htm LaTeX It's a powerful typesetting software , But it was originally designed for English typesetting . In order to make it competent for the task of Chinese typesetting ...

  6. C++ socket programming in Linux

    Server.c #include <arpa/inet.h> #include <errno.h> #include <netinet/in.h> #includ ...

  7. excel function 1

    1 Relative and absolute references to functions 1.1 Absolutely quote , Relative references and mixed references Hold down F4 Keys can switch to each other 1.2 if and or function Case pictures =IF(C7>30000," Big business ",&q ...

  8. Yii2 Commonly used ActiveRecord usage

    1. Multi table join table query and object association query public function getWmsCheck(){ return $this->hasOne(\core\models\WmsCheck::classN ...

  9. Android Performance optimization of image compression optimization

    1 classification Android Image compression combines multiple compression methods , Commonly used are dimensional compression . Mass compression . Sample rate compression and through JNI call libjpeg Library to compress . Refer to this method :Android-BitherCompress remarks : Yes ...

  10. BZOJ 1269 Text editor editor( Stretch the tree )

    The question https://www.lydsy.com/JudgeOnline/problem.php?id=1269 Ideas Stretch the tree (\(\text{splay}\)) A template with complete functions , Can better reflect \( ...