In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "what is the use of C++ compiler". In daily operation, I believe many people have doubts about the use of C++ compiler. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "what is the use of C++ compiler?" Next, please follow the editor to study!
When the installation is complete, open EditPlus and select configure user tools under the tools menu. Menu items, such as the parameters dialog box. In this dialog box, you can configure user tools, connect to external programs, and complete the compilation and running of C and C++ programs.
I use the GCC compiler that comes with Dev-C++. The compiled configuration is described below. Click the "Group tools" button and select the program, which adds a command tool. Fill in the menu text box with the name of the command, such as "C compile", and there is a ".." on the right side of the command text box. Button, click it, you can choose the GCC compiler you use the program, I choose is the Dev-Cpp installation directory in the bin folder of the gcc program.
Then fill in the running parameters in the parameter text box, and click the button on the right side of the text box to select. These are some parameters of the Edit Plus operation line, describing the name of the file being edited, the full path name of the file, the path of the file, and so on.
To make the compiled exe file named the file name of the source program, you should use the following parameters:
$(FilePath)-o $(FileDir)\ $(FileNameNoExt). Exe $(FilePath) represents the path of the file, $(FileDir) indicates the directory where the file is located, and $(FileNameNoExt) indicates the filename without the extension, so that the resulting exe file is in the same directory as the source file. Through this step, the C compiler is configured.
In order to configure the C++ compiler, you need to change the command to "bin", which is also in the bin folder of the Dev-Cpp installation directory. Now use Editplus to open a C language source program, click the toolbar button like a small hammer, you can compile the source file, if you can not see the user tool group, through the "View-> Toolbar / View-> user toolbar" can let him display, at this time EditPlus will open a command window, the compiled runnable files and the source files in the same directory.
In order for the compiled information to be displayed in the EditPlus window, the output should be captured. To do this, open the original user tool configuration dialog box, select the original configuration tool, and select the "capture output" check box, so that the compiled information is displayed in the output view of EditPlus. If a compilation error occurs, clicking the error will jump to the line where the error is located.
Here's how to run the compiled program in the C++ compiler. To do this, add a user tool as above and fill in the command text box with the following parameters: $(FileDir)\ $(FileNameNoExt). Exe click OK. Now click on the second user tool to run the executable program you generated. You can also capture the output to the output view of EditPlus, but EditPlus does not accept input, so it does not work properly for programs with input. Using the same method, you can also configure Java's development environment.
At this point, the study of "what is the use of the C++ compiler" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.