Static Link Library for VC ++ dynamic link library (DLL) Programming
The explanation of the static link library is not the focus of this article, but before explaining the DLL, the example of a static link library can help us quickly build the concept of "library.
Figure 1
Static libraries, dynamic libraries in UNIX terms, or archive files (archive often end with. A) and shared objects (share object often starts with lib. So end) more accurately. A static library, a dynamic library may be a term under windows, but the concept is the same. The following unified said static library and dynamic library.Static
The explanation of the static link library is not the focus of this article, but the example of a static link library can quickly help us to establish the concept of "library" before we specifically explain the DLL.
Figure 1 Creating a static link library
As shown in Figure 1, the new Static
first, you need to install the Eclipse's CDT compilation environment. Configure the GCC compilation environment. LUnix usually have GCC, Windows needs to install a Cygwin.
first, establish a dynamic database (. so file)
1. Create a shared library project in eclipse first
File->new->project->c project, select Shared Library, select Empty Project
2, create the project source file Share.cpp
File->new->source
Differences:
(1) Static Connection Library as the targetCodeIs linked
(2) the dynamic Connection Library and the target code are two parts.
(3) The COM component is called by registering the location and interface of the dynamic library in the registry.
Advantages and disadvantages:
(1) Static disadvantage: Make the targetProgramIncreased volume, not fl
Static Connection Library is to directly link the function code used in the (LIB) file to the target program. Other library files are no longer needed when the program is running; dynamic Link is to link the file module (DLL) where the called function is located and the location of the called function in the file to the target program. When the program is running, find the corresponding function code from t
When using C ++ development programs or libraries, provide the libraries to others.
However, the user uses a C-developed program. When linking the library generated by G ++ compilation, it is different from the library generated by GCC.
The first is the static library. Take libmylib. A compiled by link g ++ as an example.
Mylib depends on the pthread, RT, and mat
Core issue: how to compile a third-party class library jar package into a blackberry class library cod file that can be installed.Note: In some cases, there are no third-party class library source code and only jar packages. You do not need to decompile the class files.The most important step to solve the problem: Use the BB-ant-tools ant script tool to compile a
PHPPDO function library details, pdo function library details. The PHPPDO function library is detailed. The pdo function library is a database access abstraction layer used to unify access interfaces of various databases. compared with the function libraries of mysql and mysqli, the PDO function
Free Library and tool set for Android development, android class libraryA set of free class libraries and tools for Android development, which are classified by directory. Action Bars
ActionBarSherlock
Extended ActionBar
FadingActionBar
GlassActionBar
V7 appcompat library
Advertisement
AdMob
Google Mobile Ads SDK
InMobi
MMedia
MobileCore
MoPub
Tapjoy
Analytics
Google Analytics
Yandex Metric
Thanks to the help of the gg-Ak47 kids shoes in the VLC study group, although he told me that I didn't get it done. The contrib library is provided on the official website.CodeFor the third-party library called, it is very troublesome to debug and modify it. Jeremiah recently debugged vlc rtsp and compiled the live555 library to replace the live
Ibcurl-based cross-platform multi-thread resumable download library and ibcurl download Library
I have previously written a multi‑thread resumable download library, but it is a linux-based download program. Running in windows is okay, and there are various problems in android and debugging is still troublesome. In subsequent game development, on the one hand, the
A preliminary understanding of JavaScript function library jQuery and function library jquery
The jQuery library can be added to a webpage with a simple line of markup.JQuery library-Features
JQuery is a JavaScript function library.
The jQuery
JSP-10-JSTL standard label library, jsp-10-jstl label Library
JSTL (jsp standard tag Library) contains a set of standard tags used to compile and develop JSP pages. It provides users with a script-free environment.
JSTL provides four major tag libraries: Core tag library, International (I18N) and formatted tag
Linux so library generation (1), linuxso library generation
Dear!
Post a public version first. I hope to understand it word by word. It is helpful!
$ Gcc-shared-Wl,-soname, libhello. so.1-o libhello. so.1.0 hello. o create two symbolic connections: $ ln-s libhello. so.1.0 libhello. so.1 $ ln-s libhello. so.1 libhello. so, a dynamic Connection Library of libhel
/********************************************************************* * Author:samson * date:02/02/2015 * Test PL Atform: * 3.13.0-24-generic * GNU bash, 4.3.11 (1)-release * *********************************** ********************************/In the HelloWorld project, a simple two-sum program was compiled, and after compiling it into a shared library, how would you use Python to invoke it?use the LL command to list the shared
Dynamic Link Library ConceptsDynamic Library (Abbr,dll) technology is a technique commonly used in programming. Its purpose is to reduce the size of the program, save space, improve efficiency, with high flexibility. Using dynamic library technology makes it easier to upgrade software versions. Unlike a static library,
First, let's take a look at the knowledge about static databases:
Program compilation usually requires preprocessing, compilation, compilation, and linking. For some public code in our project, if you want to reuse it, You can compile the code into a static library file. In the link step, the linker obtains the corresponding code from the library file and generates an executable file. The execution file of
Preface:
In the previous lesson, we introduced a simple introduction to GCC, including the GCC compilation steps: preprocessing, compilation, assembly, and link. In this lesson, you are welcome to join us in the Linux library.Principle:
In Linux, there are two types of libraries: static library and shared library. The static library is. files ending with the suff
1. Static Compilation: when compiling an executable file, the compiler extracts the part of the corresponding dynamic link library (. So or. ilb) that needs to be used and links it to the executable file,Make the executable file do not need to depend on the dynamic link library during running.
2. Dynamic Compilation: a dynamic link library must be attached to the
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.