There are two types of libraries in Linux: dynamic library and static library (shared library)
The difference between the two lies in that the code is loaded at different times.
The code of the static library has been loaded into the executable program during compilation, so the size is relatively large.
The code of th
I. Basic CONCEPTS 1.1 what is a libraryLibraries exist in a large number of Windows platforms and Linux platforms.In essence, a library is a binary form of executable code that can be loaded into memory by the operating system.Because of the different platforms of Windows and Linux (mainly compilers, assemblers, and connectors), the binary of the libraries is incompatible.This article is limited to introducing libraries under Linux.1.2 Types of librar
C Run-Time library functionsC Run-time library functions are some of the basic functions supported by the C language itself, usually implemented directly by the assembler.API functionsAPI functions are functions implemented by the operating system to implement specific functions for user-friendly design of applications, and API functions are also implemented in C language functions.DifferenceThe difference
C Run-Time library functionsC Run-time library functions are some of the basic functions supported by the C language itself, usually implemented directly by the assembler.API functionsAPI functions are functions implemented by the operating system to implement specific functions for user-friendly design of applications, and API functions are also implemented in C language functions.DifferenceThe difference
Link: Warning lnk4098: the default library "libcmtd" conflicts with other libraries; Use/nodefaultlib: Library Category: small applications Read by 1037 Comment (0) Favorites Report This warning message is often encountered in the past, because there is no problem in the operation, so I did not go into details. However, I searched the internet for the success prompt "0 errors and 0 warnings. T
The difference between a dynamic-link library and a static-link libraryThis article references the following blogs:1. http://blog.csdn.net/gamecreating/article/details/55041522. http://blog.csdn.net/left_la/article/details/120985453. http://blog.csdn.net/augusdi/article/details/6460415Static Connection library is the use of the (Lib) file function code directly linked into the target program, the program is
http://www.ibm.com/developerworks/cn/linux/l-cn-linklib/Tips: Linux dynamic library and static library production and use of detailedThree ways of connection and static library making and using in standard libraryLinux application development usually has to consider three issues, namely: 1) in the Linux application development process encountered the standard
The relationship and difference among c Runtime Library, c standard library, and windows API.
Relationship and difference between c Runtime Library, c standard library, and windows API
C Runtime Library Function
C Runtime library
Reproduced in: About the library file some understanding _wei_sucre_ Sina BlogHttp://blog.sina.com.cn/s/blog_8f3985400100uw5k.html
A library file is typically a compiled binary that is used to generate an executable file together with the target code during the link phase, or to run an executable file to invoke a piece of code in the library file. It is the same
The library is essentially executable.CodeCan be loaded into memory for execution. The database is divided into static and dynamic databases. Differences between static and dynamic Databases
1. Static function library
The class library name is generally libxxx. a. The files compiled using the static function library
The library is essentially a binary format of executable code that can be loaded into memory for execution. The database is divided into static and dynamic databases.Differences between static and dynamic Databases
1. Static function library
The class library name is generally libxxx. a. The files compiled using the static function
Function libraries can be divided into static libraries and dynamic libraries. Create a Linux static library and a Linux dynamic library and use them here. The static library will be connected to the target code during program compilation. This static library is no longer needed when the program is running. The dynamic
Linux static library and dynamic library
A large number of libraries exist on windows and linux platforms. Essentially, a library is an executable binary code (but cannot be executed independently) that can be loaded into memory and executed by the operating system.
There are two types of libraries in Linux: static library
embedded Linux C Language (11)--Static library functions and dynamic library functions First,Static link libraryStatic links a library is a collection of obj files, usually static links Library with ". A" as the suffix, the name format is generally libxxx.a , generated by program AR. the static link
Static link of vs2008 lib
I. Static and Dynamic Link Libraries
Both static and dynamic link libraries are shared.CodeIf you use a static Link Library, all the commands in lib are directly included in the final generated EXE file, whether you wish or not. However, if a DLL is used, the DLL does not need to be included in the final EXE file. During execution of the EXE file, the DLL file can be dynamically referenced and detached.Another difference
A dynamic library based on dynamic libraryLibfun.so relies on dynamic library libtest.so (the function intnothing () in the libfun.so Dynamic library calls the libtest.so () function in intmytest), And Main.exe called the libfun.so function int nothing ().Here are two ways to work:Common ways of 1>g++-shared-fpic-o libtest.so Test.cppg++-shared-fpic-o libfun.so f
function library is generally divided into static library and dynamic library two kinds.Static libraries:Refers to the compilation of links, the code of the library files are all added to the executable file, so the resulting file is larger, but at run time also no longer need the
Original link: http://www.orlion.ga/781/I. Links to multi-objective filesSuppose there are two files: stack.c:/* STACK.C */char stack[512];int top = -1;void push (char c) {stack[++top] = C;} Char pop (void) {return stack[top--];} int Is_empty (void) {return top = =-1;}The above file implements the stack. MAIN.C:/* MAIN.C */#include This file is used by the stack, compiled: gcc main.c stack.c-o Main, can also be compiled in step:Gcc-c main.cgcc-c STACK.CGCC main.o stack.o-o MainUsing the NM comma
The production and usage of static library and dynamic library (shared library) under Linux
The function library supported by Linux operating system is divided into static library and dynamic library, and dynamic
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.