Create MinGW cross compiler under Gentoo-Linux general technology-Linux programming and kernel information. The following is a detailed description. First install crossdev (a script to help make the cross compiler), and then use
# Crossdev -- gcc 4.1.2 -- target i686-mingw32
When it is compiled, GCC compilation is still very fast without bootstrap. The above parameter -- gcc 4.1.2 is mandatory to specify the GCC 4.1.2 compilation, otherwise it w
: This article mainly introduces how to add nginx compiled by MinGW to the nginx_dav_ext_module module. if you are interested in PHP tutorials, refer to it. When nginx is compiled with VC, the nginx_dav_ext_module module is added, and various errors may occur. you have to use MinGW instead.
1. compile expat first, and put all the compiled lib, include, and bin into MinG
1. Compiling test.cpp files#include int main (int argc,char **argv){ std::coutreturn (0);}2. Enter the Test.cpp folder in cmd mode3, compile. To generate a. cpp file to a target fileg++-C Test.cpp4, link, the target file to generate a running fileg++-O test TEST.OCompiling the test.c file#include int main (int argc,char **argv){ printf ("Hello");return (0);}Gcc-c test.cGcc-o Test TEST.OType mingw-get into the MinG
Same source code, source file encoding format is UTF-8: string tmp = Span style= "color: #800000;" > " i " for (int i= 0 ; Ii) {printf ( " %0x " Output under Msvc compiler Ffffffce ffffffd2 Output under MinGW compiler Ffffffe6 ffffff88 ffffff91 Obviously, MSVC uses GB2312 or GBK encoding for Chinese, even if it uses two bytes to represent the Chinese character and MinGW uses UTF-8 e
Download FLTK 1.3.3Download CMake 3.2.0Start CMake 3.2.0, fill the source and destination:Source: c:/fltk/fltk-1.1.10Destination: c:/fltk/buildClick Configure and use MinGW makefiles to Complie.Change the following item:Cmake_install_prefix [C:/fltk/mingw]Click Configure again.After configure was done (No errors show), click Generate.Go Your build folder, open command line, type: mingw32-makeWait a long
Openblas is an optimized Blas library based on the GotoBlas21.13 BSD version, with the following installation steps:Install under Windows:1. Download the latest Openblas library in Sourgeforge: http://sourceforge.net/projects/openblas/files/2. Unzip the downloaded source to the working directory, for example: E:\VMwareSharedFolder\OpenBLAS3. Based on Openblas's instructions on GitHub "Howto use Openblas in Microsoft Visual Studio", download MinGW, lau
ClionOne of JetBrains's products, mainly used to develop C + +, the software is much lighter than vsOne, clion download (Crack ... )Links: https://www.bicfic.com/You understand, the whole English page, do not understand, I suggest you patiently read it, not so difficult to imagine, installation and PO Jie inside have detailed instructions, do not understand the words to see more than a few timesAfter installation and Crack don't rush to run the software!After installation and Crack don't rush to
Prepare the environment.
Install mingw and set the system path.
Mingw. The gun programming environment in windows.
Function of system variables-the search path of executable files. In this way, you can directly enter g ++ in cmd to call D: \ Program Files (x86) \ codeblocks \ mingw \ bin \ gw.mongomongo.exe.
The default working directory after CMD is opened
Mingw compilation boost
(Jinqing's column)
An error occurred while running Bootstrap. Sh in mingw shell.
Jinq @ jinqing-PC/D/src/boost_000052_0$ Bootstrap. Sh toolset = gccBuilding boost. Build engine with toolset GCC...Failed to build boost. Build build EngineConsult 'bootstrap. log' For more details
Bootstrap. log is shown as follows:
###### Using 'gcc 'toolset.###Rm-RF BootstrapMkdir BootstrapGcc-O Boot
I started to study c ++ well. I saw the second chapter about wchar_t wide byte and wcout. I made a try,
# Include Int main (){STD: wcout. imbue (STD: locale ("CHS "));STD: wcout Return 0;}
Declaration, the editor used at this time is C-free and the compiler is mingw, but there are two errors. What errors have you forgotten, it is probably because "wcout is not a member of STD" "illegal byte sequence" is hard to remember. The encoding and wcout err
1. Install Eclipse Standard Edition, after completion; In the "Help"-> "Install New Software", install the CDT plug-in,CDT Download URL: http://www.eclipse.org/cdt/downloads.phpLocation as shown:
Plugin URL: Http://download.eclipse.org/tools/cdt/releases/kepler
2. Installation MinGW, Address: http://sourceforge.net/projects/mingw/files/use mingw download ca
After learning about programming, I finally got into touch with the core part of C ++-the standard library part (this is the point of view of an article I have read a long time ago, I think that the core of C ++ is the standard library and generic algorithm. At the same time, this article also thinks that C ++'s support for Object-Oriented is not the core ). Since we think VC's support for the standard is not perfect, we had to use the mingw platform
I recently used mingw to compile a DLL and encountered several minor problems. record it.
1. The problem of dllmain not being executed
After the DLL is written, the function test is OK, but the dllmain is not executed, causing the initialization and analysis in the code to fail to be executed. Check the generated DLL, it is found that due to C ++ compilation, dllmain is renamed, and the solution is added with extern "C"
2. Static link pthreadgc2
W
C11 threads are supported.Encounter problems1.eclipse cannot start, error is as followsEclipse cannot start Java was started but returned exit code=13JDK and Eclipse software are incompatible, choose 64 bit, resolve2. Compilation display does not support C11" This file requires compiler and library support for the ISO C + + standard .Modify configuration to increase compilation options -std=c++11Http://www.educity.cn/wenda/248863.html3. The compiler does not support threadingMinGW error: ' Thre
1, installation notepad++ and MinGW, installation step reference online, no longer repeat.2, open notepad++ software, click on the menu bar to run, or press F5 shortcut key, pop Up the Settings dialog box.3. Fill in the input run program name of the popup dialog box with the following information cmd/k gcc-o "D:\C_Code\$ (name_part). exe" PAUSE Exit and press the Save button, named Compile C.Repeat the 2 actions above, fill in the following informat
The Mingw compile envirment isBased by MINGW-WW 201011 Edition. You can unrar it to drive C and recompile the/home/mplayer-ww by yourself simple Type automk.sh.Made by Nalan_hairuo.Change log:lame-3.99.5libbs2b-3.1.0libiconv-1.14libmng-2.0.3libpng-1.6.23libsndfile-1.0.27nasm-2.11.08yasm-1.3.0zlib-1.2.8svn-win32-1.4.6xvid-1.3.4x264Autoconf2.5-2.68-1-mingw32autoconf-2.68-1-msys-1.0.17autogen-5.10.1-1-msys-1.0
Scene:1. MinGW (TDM) 64-bit gcc,4.8.1,64 bits are very friendly to compiling 64-bit programs, but additional work is required for compiling 32-bit programs.2. For example, with Windres compile manifest,64 bit environment default is not, with configure or makefile even if added-m32 will not automatically set the Windres to compile 32-bit.Here you need to add some parameters to configure or make../configure rcflags= "--output-format=coff--target=pe-i386
When there is no IDE, it is a good idea to carry a smaller software that can be decompressed for program execution.Previously commonly used is the VC hardcover version, in the use of a large number of STL is possible, and then have a new C + + features will often go wrong, but the small program can be used to test the exerciseMinGW words, only need to unzip and then put in the folder, for example: D:\ProgramFiles, in the environment variable configuration, path under the path of the D:\ProgramFi
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.