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 will use ~ The latest version of x86 is 4.2.3, but an error occurs when I compile w32api here. It works normally after I change to 4.1.2.
After compilation, use i686-mingw32- Displays all generated MinGW tools. I686-mingw32-gcc is GCC, compile the link to generate a Windows Executable File directly, you can use wine testing. When you connect to a non-Console (use WinMain instead of main) program, you must add the parameter-mwindows (the default option is console Program-mconsole ).
With the cross-compiler, you should be able to compile native MinGW compiler in Linux. When can you try it out. MSYS has been used in Windows before, but MSYS seems to have a strange problem of consuming system resources. It always crashes Windows when the compilation is less than half done.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service