category. Debug info, generate debugging information: None, do not generate any debugging information (compilation is faster); line numbers only, only generate debugging information of global and external symbols. OBJ file or. EXE file to reduce the size of the target file; C 7.0-compatible, record all the symbols used by the debugger. OBJ file and. EXE file; program database, create. all debugging information is recorded in the PDB file; program dat
The C #3.0 language and compiler introduce several new language features. these new language constructs are useful individually in various contexts, and collectively for doing language-Integrated Query (LINQ ). for more information about LINQ, seeThe LINQ pro.
Note
The September 2006 Community Technology preview version of the C #
_msc_ver is a built-in macro for the MSVC compiler that defines the compiler's version, and the _msc_ver value corresponds to the version
Msvc++ 11.0 _msc_ver = 1700 (Visual Studio 2012)msvc++ 10.0 _msc_ver = 1600 (Visual Studio 2010)Msvc++ 9.0 _msc_ver = 1500 (Visual Studio 2008)msvc++ 8.0 _msc_ver = 1400 (Visual Studio 2005)Msvc++ 7.1 _msc_ver = 1310 (Visual Studio 2003)msvc++ 7.0 _msc_ver = 1300 (Visual Studio 2002)Msvc++ 6.0 _msc_ver = 1200msvc++
GCC has installed but also reported the C + + compiler does not support errors.The installation of the following components is then found:Yum Install gcc-c++Install Pcre successfully again.Attached: CentOS on source installation gcchttp://my.oschina.net/vaero/blog/210485# issue:configure:error:c++ compiler missing or i
calledGcc-v A.C-X: Specifies the compilation language (used in extensions not recognized by the compiler)Gcc-x ' C ' a.u-asci: Specifies that the compiler uses the Ansic standard-E: Only pre-compilation (. cxx) is done-S: only to generate assembly files (. S)-C: Generate only directory code and do not generate executa
modification are always initialized to 0. All other variables include random values before initialization or assignment. Variable names can contain uppercase letters, lowercase letters, numbers, and underscores (_), but cannot contain spaces or other special characters.
The variable name must start with a letter or underscore. Generally, it is not good to start with an underscore or double underscore below the variable name. The maximum length allowed by the variable name varies with the
Download the full text of the CSDN Download Center http://download.csdn.net/detail/Dreamcode/201005
(1) virtual function
Let's look at a simple piece of code:
Code Segment:
LINE01: #include
LINE02:
Line03:class Base {
Line04:public:
line05:virtual void __stdcall Output () {
line06:printf ("Class base\n");
LINE07:}
Line08:};
LINE09:
Line10:class derive:p ublic Base {
Line11:public:
Line12:void __stdcall Ou
this attribute in the implementation file. the compiler will automatically determine whether to provide the setter Method Based on the readable and writable attributes. More intelligent.
4. Syntax simplificationAll those who have done Java or C # development know that initialization or assignment of a variable is usually done with a "=" sign. After objective-C
RecursionAlgorithmWithProgramIt is easy to write. However, due to the limitations of the compiler pre-allocate stack space, recursive depth is not unlimited.
During recursion, the system saves the current program running status (pushed to the stack), compresses the parameter stack, and then recursion.
Stack operations are performed after recursion.
When the recursion depth is very deep, the recursion cannot continue because the stack is full.
C # Does the compiler generate a default constructor for the value type?
The answer is no. the C # compiler does not generate Default constructors for values. This design is based on performance considerations, another reason is that the value type can be implicitly created! This can be verified through the ildasm to
Compiler error message when you run an asp: CS0016: Failed to write to output file "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP. Files\ Asaa\6afc8e18\e1c3edea\app_web_masterpage.master.fdf7a39c.r2drwb6q.dll "--" denied access. ”
Compiler error message when you run the asp: CS0016: Failed to write to output file "
I. Software Installation
I am using Dev-C ++, mainly using its GCC and G ++, notepad ++ 5.6.6
2. Set Dev-C ++ Environment Variables
1. Set the path of the compiler and add D:/dev-CPP/bin to the path of the Windows environment variable. Do not forget to add a semicolon before and remove it from others.2. Set the path of the
operands has void type, that is, B and C are of type void, corresponding to the 31st to 32ndRow, the type of the entire conditional expression is void at this time.(4) Both operands is pointers to qualified or unqualified versions ofcompatible types,That is, B and C are compatible pointer types, corresponding to line 33rd to 36th, where the type of the entire conditional expression is the type B and
Document directory
Basic use of C ++ compiler g ++ in Linux
Basic usage of C ++ compiler g ++ in Linux {
Commit it (this)
} "Onmousedown =" function onmousedown ()
{
CA. Q ('blog _ entryview_assist_topright ');
} "Href =" javascript: void (0); "> label: Linux C ++
1. Compiler warnings may give important information, such as:class b{public: virtualvoidconst; ...}; class D: public b{public: virtualvoid f (); ...};Since F in B is a const member function, and F in D is non-const, D::F is an override of B::f instead of a re-declaration, and the compiler usually gives a warning "warning:d:f () hides virtual b::f ()". This warning actually contains two meanings
The most common C + + compiler under Windows is the compiler that comes with Visual Studio Cl.exeThis is usually the directory where:C:\Program Files (x86) \microsoft Visual Studio 10.0\vc\binIf you are not prompted to find Mspdb100.dll, you can usually find this file hereD:\Program Files (x86) \microsoft Visual Studio 10.0\Common7\IDEand add it into the system p
The name decoration of a function (decorated name) is a string that the compiler creates during compilation to indicate the definition or prototype of a function. The link program or other tool sometimes needs to specify the function's name decoration to locate the correct position of the function. In most cases the programmer does not need to know the function's name decoration, and the link program or other tool will automatically differentiate them
= (byte) A + B.
The output result above is actually all: system. int32
Here, there is actually a more inexplicable rule. Let's take a look at it first, but we have modified some of it in the previous code.
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Static void main ()
{
Byte A = 1;
Byte B = 2;
Byte C;
C = B + 1; // Error
Windows, with the VC compiler cl.exe, compiled nginx third-party module, there is a similar code error: Static ngx_int_tNgx_http_zip_main_request_header_filter (ngx_http_request_t *r){ngx_http_variable_value_t *VV;ngx_http_zip_ctx_t *ctx; if (CTX = Ngx_http_get_module_ctx (R, ngx_http_zip_module))! = NULL)return Ngx_http_next_header_filter (R); if (vv = Ngx_palloc (R->pool, sizeof (ngx_http_variable_value_t)) = = = NULL)return ngx_error; /* Look for X
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.