A method of learning from VC programming Software learn C + + programming (build EditPlus implementation execute. C file in a text edit box

Source: Internet
Author: User

Download a editplus notepad on-line after installation, you can follow the steps below to build the environment:

I. Tools → configure user tools (Configure usertools ... ), "Add tool>>" → "Application" (program)
1, "menu text" Feel free to write (write "compile" here);
2, "command" on behalf of the program to be executed, write Gcc.exe executable file full path (F:gccbingcc.exe);
3, "parameter" (Argument) is the command line parameter passed to GCC "$ (FileName)-O $ (filenamenoext). exe"; set a "shortcut", click on this shortcut to execute the command;
4, "directory" (Initial) write "$ (filedir)", where the "directory" is the equivalent of CMD in the CD to. C folder (C:usersadministratordesktopwin32 knowledge);
5, "action" (action) Select "Capture Output" (capture output), because the selection of "capture outputs", the compilation output will not be output to the console, but output to the "output" view, look clear, and easy to locate the wrong row;
6, "Save" the "current file, all open files" (all open file);
Second, create a new command to run the generated EXE program:
7, "menu text" Feel free to write (write "run" here);
8. Command represents the program to execute, executes the. C program file that was just generated, ($ (FileName). exe)
9, "Parameters" (Argument) do not write;
10, "directory" (Initial) write "$ (filedir)", where the "directory" is the equivalent of CMD in the CD to. C folder (C:usersadministratordesktopwin32 knowledge);
11, "Action" select "None" (none) because the default (None), the compilation will be output to the console, look clear, and convenient;
12, "Save" the "current file, all open files" (all open file);

By the way, after installing the VC6.0, you can also compile and run your own program in a notebook that comes with your computer:
The configuration environment is as follows:

Compile and run C + + source files under cmd command line
First, if the VC is installed, it is simple, because VC with C compiler, you can set this path into the environment variable.
To compile the connection source code method under Windows system:
CL-GX test.c
-GX: Initiating synchronous exception handling
The above command produces an executable program: Test.exe
Enter directly on the command line: Test.exe to run the program
Tips:
One, CMD type CL hint do not know CL command, because the Cl.exe program cannot be found. Here's how to fix it:
Add a system variable (path), such as the system variable, environment variable, properties---
C:Program Files (x86) Microsoft Visual Studiovc98bin;
Attention:
1. End with ";"
2. If your Microsoft Visual Studio is below version 9.0 or above 9.0, you need to modify the path name above.
Second, the CMD type CL to perform compile will appear mspdb60.dll cannot find, because vc/bin/does not have "MSPDB60. Dll
MSPDB60. Dll,mspdbcore.dll,mspdbsrv.exe "These four files, the solution method:
1> directly from the f:win32/bin/copy these four files to vc/bin/can be resolved
2> Add the system variable (Path), so: System variable--environment variable-------Properties-----------Add C:Program Files (x86) in Path to Microsoft Visual Studiovc98bin;
, pay attention to the end of the last with ";" Separate!
In this way, the Mspdb6.0.dll file cannot be found without errors when compiling with CL. "Execute compile and link directly from the command line" file under the Win32 directory under F disk
Third, if you are in the process of compiling, an error occurred:
1. Fatal error c1034:stdio.h:no include path set
2. Fatal error Lnk1104:cannot open file "User32.lib
Create a new system variable lib, include, and set their values in the system variable, advanced environment variable, properties, My Computer
(LIB) C:Program Files (x86) Microsoft Visual Studio vc98lib;
(INCLUDE) C:Program Files (x86) Microsoft Visual studiovc98include; a semicolon (;) must be added

A method of learning from VC programming Software learn C + + programming (build EditPlus implementation execute. C file in a text edit box

Related Article

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.