When the C/C ++ compiler is used to compile the source program, it will check the syntax errors and computing constants. We can add some computation contracts to the C/C ++ source code, the source code must be used according to certain rules. This can reduce many usage errors and software bugs because these bugs are discovered during code compilation, you do not need to discover it before testing or on-site use.Below are some examples of the contract
1. Prepare the compilation environment
It takes about 8.5 GB to download Android code, and about 30 GB to compile a set of Code separately. If there are multiple sets, the hard disk space must be at least GB.
2. Configure the compiling environment for android in Linux
Install the required software package for compilation:
1 $ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc
Multithreaded precompiled display list is really problematic, because there is no successful creation of the shared graphics context, so there is no compilation drawing thread.http://bbs.osgchina.org/forum.php?mod=viewthreadtid=2836【Without Compilecontext,Databasepager itself will not perform precompilation. So this time the precompiled work is actually done by renderer:If Compilecontext is not defined, the data waiting to be compiled in Databasepage
PHP compilation and installation often see the error solution, php compilation common errors. PHP compilation installation often see error solution, php compilation common errors Thisarticleispostoncoderwall. compggmpfaconfigure: error: xslt-confignotfound.Pleasereinstall PHP compi
Program compilation link process, program compilation link Process
Let's start with HelloWorld...
#include
Follow these steps to connect the source file hello.cppto hello.exe:
Run the following command to generate an executable file from the source file:
Linux:
Gcc-lstdc ++ Hello. cpp-o Hello. out // The lstdc parameter must be included; otherwise, the undefined reference to '_ gxx_personality_v0' error w
1. I use the required software in Ubuntu11.102. otherwise, the subsequent compilation will fail: ① ncurses-devel required ② texinfo (that is, the makeinfo command is missing or glibc compilation will fail, you can see the prompt that the makeinfo command is missing) ③ gawk (not mawk, otherwise glibc compilation will fail) error is as follows: mawk: scripts/gen-so
), $ (Build_dir), $ (build_dir DIR)) Srctree: = $ (CURDIR) Topdir: = $ (srctree) 98 Lndir: = $ (Objtree) The TOP of the export DIR srctree objtree 101 Mkconfig: = $ (srctree)/mkconfig 102 Export Mkconfig 103 104 IFNEQ ($ (Objtree), $ (srctr EE)) Remote_build: = 1 106 Export Remote_build 107 endif 108 109 # $ (obj) and (SRC) is defined in CONFIG.MK but he Re in main Makefile # We also need them before config.mk are included which are the case for 111 # some targets like UNC Onfig, clean, clobber,
Part 1: Installation and compilation of the compiling environment
1. Install ubuntu9.10 System
2. Upload the source code to Ubuntu and decompress it.
3. Install the compiling environment
A. sudo apt-Get install bison
B. sudo apt-Get install Vim
C. Solution: Install JDK 5.0
1): According to the official document,Source codeJdk5 is required for compilation. Therefore, we use jdk5
2): update th
Git source code compilation of Qt 5 and qtgit source code compilation
Git source code compilation of Qt 5
Due to some requirements, you need to contact Qt3D. Although Qt 3D has not yet been released, it is said that it has almost completed. The internal version of Qt 3D is 2.0 and will be incorporated into Qt 5.5. There are still some ways to get Qt 3D. That is,
CodeIgniter upload picture does not correctly identify the problem resolution of the picture type, CodeIgniter upload the image
In the upload class with CodeIgniter upload pictures, is clearly jpg format picture, but CI always recognized as application/octet-stream type, resulting in upload failure, collected the following information, the solution is as follows
http://my.oschina.net/cart/ The picture grabbed to the local, grabbed the last 100,000 pictures, suddenly found that there are a few picture thumbnails to see is normal, open the picture straight display part, but the base is big ah, how to use PHP batch to detect which pictures damaged it? If you want PHP to detect if the JPG image is damaged, is it complete? Pl
Linux dynamic library compilation and usage detailed analysis, linux dynamic compilation Analysis
Introduction
This article focuses on some operations on using gcc to compile dynamic libraries on linux and provides in-depth case analysis.Finally, we will introduce the dynamic library plug-in technology to make the code backward compatible,
Pre-compile, compile, and generate the final link of the mechanical
Cross-compilation summary libosscore. a libcurl. a libmysqlclient. a, libcurl cross-CompilationIt took a lot of effort to cross-compile the project files to run on arm. The first error was X uses VFP register arguments, B does not Baidu. It was found that it was a hard floating point and soft floating point problem. The original idea was to change the X encoding method, moved to Y, then how to get it all can't, change the idea, re-compile several libr
Linux compilation system introduction and kernel compilation and Installation
This article not only describes how to compile and install the Linux kernel, but also describes the kernel compilation system and various important files. Finally, you can use the compiled and installed Linux kernel to change the Linux 01 scheduling to random scheduling. If you only nee
MonaServer source code compilation and installation, and monaserver source code compilation
During the weekend, I want to eat dumplings. My daughter-in-law said she could pack me steamed stuffed buns. The dumplings were big and made fast. So I went to the supermarket to buy food to buy meat, and came back to cook noodles, wash dishes, and paste the meat. After a few hours, the two men were already hungry an
Differences between the two defining function methods in javascript and the effect of function pre-compilation, javascript Compilation
We know that there are two ways to define functions in javascript:
Function mm (){}
This form declares a function. Like var declares a variable mechanism, the script performs pre-compilation before interpretation and execution.
V
Hi-nginx-1.3.4 compilation installation, hi-nginx-1.3.4 Compilation
Hi-nginx is both a web server and an application server. It is open source in https://github.com/webcpp/hi-nginx
It is a superset of NGINX, so it is slightly different from compiling NGINX. Compiling and installing hi-nginx requires additional installation, depending on the programming languages you want hi-nginx to support.
Hi-nginx suppor
Two errors and solutions encountered during PHP compilation and installation: php Compilation
I. PHP configure: error: Cannot find ldap libraries in/usr/lib
PHP5.4.8 is compiled and installed in 64-bit CentOS today. The result is displayed in configure.Configure: error: Cannot find ldap libraries in/usr/libThe prompt is that the related modules cannot be found under/usr/lib, because the above files are stor
As mentioned in the previous article, the Concepts Check in sgi stl is actually a feature that will be checked during compilation by using template class instantiation. sgi stl is widely used.
Concepts Check, as mentioned earlier, is not mentioned here. in
Template features are divided into two types: 1. Absolute features
2. Some Features
In this blog post, we mainly look at some special features. We still use the stl_stack.h source code.
templat
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.