Clion Use simple Summary

Source: Internet
Author: User
Tags cpu usage
Clion is a cross-platform C + + IDE developed by JetBrains, with a style close to Qt creator and xcode,clion features that can intelligently code refactoring, such as renaming, extracting classes, extracting functions, Clion and Java IDE IntelliJ Idea function very close, I from Clion 1.0 began to pay attention to, but at that time the primary version is not suitable for larger projects, on the other hand clion on the basis of CMake to build C + + engineering and development, and need Cygwin or MINGGW as a compilation platform (win platform), as the people used to use the source insight is really too troublesome, so gave up. These years with the cmake of the spectrum and the continuous improvement of their own, clion again into my vision, so simply summarize the problems encountered in the use.

1. Cygwin configuration

Clion There is a more depressing place is the need to set up the environment, the IDE to do code analysis and other actions, which makes people very depressed, because not necessarily with the IDE will use it to compile, simple to do editor is a lot of people's needs it, but I tried a lot of methods or not, Must be configured to compile the environment, there is a good way to give me a message.

Cygwin itself download installation does not need me to say, the basic guarantee compiler, Gdb,cmake can be clion can be found on it. I also see which is like on the load, we try it yourself:)

As long as the figure is guaranteed to find it.

2. The principle of symbolic analysis of Clion is not based on project, it is not to add files to the project the IDE begins to analyze the links of all the files in the project, but instead makes the symbolic links according to the details of the code. That is, he will look for the code in the Include. h file to link, if the include file cannot be found, the symbol in the code can not find the corresponding include file, so the use of CMake to note that the include file must be correct, if you need to compile, you also need to note that the library configuration to correct (path, file name And so on), I began to use a lot of documents between the symbols can not jump, but the inside of the file can, later found or include the path is not right.

In addition, the Clion project will default to find/usr/include the following header files, and priority is relatively high, if your external files in other places, the compilation of external files can be found, but the wrong version, it is possible to refer to the first/usr/ Include the following header file


3. Often found in the use of CPU usage is very high, a clion computer fan on the crazy turn, very frustrating. This phenomenon, in fact, because the open inspect code,ide in the background do not stop to do code checking. Code->configure Current File Analysis sets inspections to syntax.


Transferred from: http://www.cnblogs.com/dangerman/articles/6394514.html

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.