Construct a C language development environment in the Windows platform

1. Building a DEV C++ integrated development environment on the Windows platform< /strong>
Official website https://sourceforge.net/projects/orwelldevcpp/ Download Dev C++ and run it

Environment preparation, configure the GNU environment on the Windows platform

GNU http://www.gnu.org/

C language needs to be compiled to run, but the default Windows system does not compile C Language environment, then the GNU environment is required to provide compilation

Choose one of the following GNU environments to download and install to the C drive:

1.MinGw

MinGW provides a simple and convenient GCC-based program development environment under Winodows

Download and install from the official website http://www.mingw.org/

Install related components during the installation process: check mingw-developer-toolkit, mingw-gcc-g++, mingw-gcc-objc, msys-base (this process is a bit long)

It will be installed Under the directory (here is C:\MinGW\msys\1.0\msys.bat) Send to the desktop shortcut

Enter gcc in the msys.bat command box and you will get: sh: gcc: command not found< /p>

No environment variables are configured at this time

Open C:\MinGW\msys\1.0\etc\profile with an editor

In the last line Add export PATH=/C/MinGW/bin:$PATH to save and reopen msys.bat

Enter cd /c/ in the command box Users/Username/Desktop enter the desktop

(At this time, use the editor to write a hello.c on the desktop)

Enter gcc hello.c in the command box and it will be automatically generated on the desktop Compiled hello.exe

Enter the command box. /hello.exe When you directly execute hello.exe to get the running result, it means that the environment is set up successfully

Official website http://www.eclipse. org/ Choose Eclipse IDE for C/C++ Developers

After the download is complete, directly unzip and modify the folder name cdt and rename the eclipse.exe inside cdt.exe
Open cdt .exe will pop up a prompt that jre cannot be found because eclipse is developed in java language
so you need to go to http://www.oracle.com/ to download java for developers and click download jdk

< div> Eclipse can be started after jdk is installed

Attachment: Please configure the GNU environment before installing Elclipse:

cygwin During the download and installation process, check cmake make under Select Packages to install it
After the installation, you can enter the make command to test in cgwin div>

An error is prompted during operation
This is because the opening method is wrong. Open cdt.exe from cygwin or copy a cygwin.dll in the source code directory.

1.Building a DEV C++ integrated development environment on the Windows platform strong>

Official website https://sourceforge.net/projects/orwelldevcpp/ Download Dev C++ and run it

Environment Prepare, configure the GNU environment on the Windows platform

GNU http://www.gnu.org/

C language needs to be compiled to run, and the default Windows system does not compile the C language environment, then the GNU environment is required to provide compilation p>

Choose one of the following GNU environments to download and install to drive C:

1.MinGw

MinGW provides a set of simple and convenient Winodows Under the GCC-based program development environment

Download and install from the official website http://www.mingw.org/

Install related components during the installation process: check mingw-developer-toolkit , Mingw-gcc-g++, mingw-gcc-objc, msys-base (this process is a bit long)

Put it under the installation directory (here is C:\MinGW\msys\1.0\msys.bat ) Send to the desktop shortcut

Enter gcc in the msys.bat command box, and you will get: sh: gcc: command not found

No environment variables are configured at this time

Open C:\MinGW\msys\1 with an editor. 0\etc\profile

Add export PATH=/C/MinGW/bin:$PATH after the last line, save and reopen msys.bat

Enter cd /c/Users/Username/Desktop in the command box to enter the desktop

(At this time, use the editor to write a hello.c on the desktop)

< p> Enter gcc hello.c in the command box and the compiled hello.exe will be automatically generated on the desktop

Enter the command box. /hello.exe If you execute hello.exe directly and get the running result, it means that the environment is set up successfully< /p>

Official website http://www.eclipse.org/ Select Eclipse IDE for C/C++ Developers

After the download is complete, directly unzip and modify the folder name cdt and put the eclipse inside. exe renamed to cdt.exe
Open cdt.exe and there will be a pop-up prompt that jre cannot be found because eclipse is developed in java language
So you need to enter http://www.oracle .com/ Download java for developers Click download jdk
After jdk is installed, you can start eclipse
Attach: Please configure the GNU environment before installing Elclipse: < /div>

It prompts that no make error can be found during the compilation process
cygwin During the download and installation process, check cmake make under Select Packages and install it

< div> After installation, you can enter the make command to test in cgwin

An error is prompted during the running process
This is because the opening method is wrong. Open cdt.exe from cygwin or copy a cygwin.dll in the source code directory.

After the download is complete, directly unzip and modify the folder name cdt. Eclipse.exe was renamed cdt.exe
Open cdt.exe and there will be a pop-up prompt that no jre can be found because eclipse is developed in java language
So you need to enter http:// www.oracle.com/ Download java for developers Click download jdk
After jdk is installed, you can start eclipse
Attach: Please configure GNU before installing Elclipse Environment:
cygwin During the download and installation process, check cmake make under Select Packages and install it
div>

After installation, you can enter the make command to test in cgwin
An error is prompted during the operation
This is because the opening method is wrong. Open cdt.exe from cygwin or copy a cygwin.dll in the source code directory.

After the download is complete, directly unzip and modify the folder name cdt and rename the eclipse.exe inside to cdt .exe

Open cdt.exe, there will be a pop-up prompt that jre cannot be found because eclipse is developed in java language

So you need to go to http://www.oracle.com/ to download java for developers click to download jdk

After jdk is installed, you can start eclipse

Attach: Please configure the GNU environment before installing Elclipse:

< p> During the compilation process, it prompts that no make can be found error

cygwin During the download and installation process, check the cmake make under Select Packages and install it

After the installation is complete Then you can enter the make command to test in cgwin

An error is prompted during the running process

This is because the opening method is wrong. Open cdt.exe from cygwin or copy a cygwin.dll in the source code directory.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5640 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.