Install c locale under Windows

Source: Internet
Author: User
Tags locale

Installation
    • 1. Download MIN-GW installer, link to: http://sourceforge.net/projects/mingw/files/, download Download mingw-get-setup.exe (86.5 KB)

  • 2. Run Download Mingw-get-setup.exe (86.5 kB), click "Run", continue, etc., note that the installed directories, such as C:\MinGw, will be used when modifying environment variables.
  • 3. Modify the Environment variables:

    Select Computer-Properties---Advanced system settings---Environment variables, locate the Path variable in the system variable, and add the MIN-GW installation directory, such as C:\MinGw\bin

  • 4. In the Start menu, click "Run", enter cmd, open the command line: Enter mingw-get, if the MinGW Installation Manager window pops up, the installation is OK. At this point, close the MinGw Installation Manager window, otherwise the next step will be an error
  • 5. Enter the command in cmd mingw-get install GCC, wait a while, and GCC will be installed successfully.

If you want to install G++,GDB, just enter the command mingw-get install g++ and mingw-get install GDB

Test

# include <stdio.h>int main () {    printf ("Hello world,leo!");    return 0; Exit

In cmd:

GCC test.c

The A.exe file is generated

A.exe
Hello world,leo!

Install c locale under Windows

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.