CLion answers frequently asked questions

We started the Public EAP of CLion recently and were overloaded with lots of feedback via email, tweets, discussion threads in various programming blogs and forums, and YouTrack requests. We are really impressed, and grateful to all of our evaluators.

We’ve gathered a list of Frequently Asked Questions and would like to share the answers, workarounds and tips with you.

Toolchains options

Q: Should I use CMake to try CLion?
A: Yes. CLion supports only CMake-based projects for now.

Q: Do you plan to support any other build systems? When is this going to happen?
A: Yes, this is in our plans. Please find the feature request in our tracker to vote and comment on. CLion 1.0 will definitely come with CMake support only, but later we’ll decide where to move next, by considering your votes in the tracker. The most popular options so far are:

Feel free to vote and leave comments in these requests so we can better understand your needs.

Q: What toolchain should I use on Windows?
A: You have two options: Cygwin or MinGW. More details on how to configure these toolchains:

  • Cygwin: Get the latest available 64-bit version and make sure to select gcc/g++, cmake, make and gdb 7.8 while installing the packages.
  • MinGW: CLion currently supports MinGW and MinGW-w64. See the compatible versions list in our quick start guide.
    In addition, don’t forget to install make and gcc/g++ packages from MinGW toolchain to make it work with CLion.

Q: Can I change the toolchain from what I’ve selected on the Welcome screen?
A: Sure. Feel free to change it in Preferences/Settings | Build, Execution, Deployment | Toolchains. Try checking the environment functionality there to understand if anything is missing or wrong with your toolchain. It will try to build a very simple program and inform you of the result.

Q: What compilers can I use? How do I change the compiler?
A: At present CLion supports GCC and Clang compilers and is guided by these two to get the libraries and headers paths. In the next releases we are planning to extend the list of compilers available in CLion.

Since CLion relies on CMake build system. To change the compiler used in CLion, use method #2 from the official CMake documentation.
Go to Preferences/Settings | Build, Execution, Deployment | CMake | CMake options and pass the following commands:
-D CMAKE_C_COMPILER=
-D CMAKE_CXX_COMPILER=
The corresponding CMake cache variables will be overwritten.

CMake configuration

Q: How to pass environment variables and parameters to CMake in CLion?
A: The best way is to use Preferences/Settings | Build, Execution, Deployment | CMake dialog.

Q: CLion builds my project in some IDE’s directory? How to change that?
A: This can be done easily with CMake variables. Just set:
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "my_dir")
You can change build output directory in Preferences/Settings | Build, Execution, Deployment | CMake dialog as well.

In addition, the Run/Debug Configurations dialog (Run | Edit Configurations…) in CLion allows you to set program execution arguments, working directory, and environment variables.

Q: How to set CMake build type in the IDE?
A: Go to Run | Edit Configurations dialog and change the configuration type there – select Debug, Release, RelWithDebInfo or MinSizeRel. CLion will set then proper CMAKE_BUILD_TYPE for you automatically.

Also in the status bar you can find the Resolve Context chooser for switching between the Debug, Release, RelWithDebInfo and MinSizeRel contexts to resolve your code in the IDE with the desired definitions.

Q: CLion fails to find some of my headers. Where does it search for them?
A: CLion searches through the same places CMake does. Set the INCLUDE_DIRECTORIES variable in CMake to provide the headers path to the IDE.

By the way, in this wiki you can find a lot of useful CMake variables with descriptions that can be especially helpful if you are new to CMake.

Q: Refactorings are not working and highlighting is wrong, even though the project can be compiled correctly. What’s happened?
A: Most probably CLion is unaware of some files in your project (these files are grayed out in the project tree):
non-project-files
It gets this information from the CMakeLists.txt files in the following way:
set(SOURCE_FILES main.cpp)
add_executable(my_exec ${SOURCE_FILES})

This is how CLion now knows that main.cpp is included in your project. As for now, header files (in case their names differ from the appropriate .cpp files already added to the SOURCE_FILES variable) should also be included in the project in that way.

Debug

Q: The debugger failed to run on my project.
A: On some similarly old Linux distributions there is an issue with bundled GDB and CMake that require a rather high C/C++ ABI level. We hope to fix this soon. As a workaround, please use custom CMake 2.8 and GDB 7.8 from your system.

Keymaps, useful shortcuts

Q: I prefer Visual Studio / Xcode / etc. keymap. How do I use it in CLion?
A: CLion supports a variety of keymaps. Choose and use your favorite one, or create a new keymap based on an existing one. Go to Preferences/Settings | Appearance and Behavior | Keymap to manage keymaps, or just press Ctrl+` to quickly switch the scheme.

Q: A shortcut is not working for me. What should I do?
A: Before reporting the error to our tracker, rule out the following possibilities:

  • The CLion shortcut conflicts with some system shortcut, and pressing it in the IDE does something different from the expected behaviour.
  • You are trying a shortcut that differs from the current keymap set.

If none of these apply, please report the issue to our tracker.

By the way, the top 10 actions & default keymap shortcuts for these actions, from our point of view, are:

  • Quick-fix: Alt+Enter on all platforms: Shows intention actions and quick-fixes.
  • Smart completion: Ctrl+Shift+Space on all platforms: Offers more accurate completion suggestions than basic completion, by filtering the list of methods and variables to match the expression type.
  • Refactor this: Ctrl+T on all platforms: Shows the list of refactorings available in the current scope.
  • Parameter info: Cmd+P on OS X, Ctrl+P on Windows/Linux: Shows the method call’s arguments with types:
    parameter_info
  • Go to Related Symbol: Ctrl+Cmd+Up for OS X, Ctrl+Alt+Home: Helps you to quickly navigate between .h and .cpp files, and more.
  • Generate code: Cmd+N on OS X, Alt+Insert on Windows/Linux: Suggests code generation options for you.
  • Surround With: Cmd+Alt+T on OS X, Ctrl+Alt+T on Windows/Linux: Helps you generate surrounding blocks of code like if..else, do..while, #ifdef, etc.
  • Find usages: Alt+F7 on all platforms: Finds code and non-code usages of the selected word.
  • File structure: Cmd+F12 for OS X, Ctrl+F12: Helps you navigate through the file structure:
    file_structure
  • Find action: Shift+Cmd+A on OS X, Ctrl+Shift+A on Windows/Linux: Searches for actions by their names; especially useful when you don’t know the full action name.

Other questions

Q: Typing/completion/etc. is slow.
A: To help us figure out why this is happening, we will need some additional information from you. Please send us a sample project, if possible, and a CPU snapshot, as described here.

Q: Is CLion a paid product? Is this functionality available as a plugin for IntelliJ IDEA?
A: CLion is a commercial product built on our own open-source IntelliJ Platform. As all other JetBrains products, CLion will most likely have a variety of licensing options, including free and paid ones. For an example, see our AppCode buy page.

We are not planning a plugin option for IntelliJ IDEA until CLion 1.0 release, but this possibility will be considered later.

Q: Is it possible to write plugins for CLion?
A: Yes, as all other JetBrains IntelliJ-Platform-based products, CLion is open to plugin development. Find useful information in our confluence space. 
Still, before v1.0 the API may be unstable and plugins may be broken occasionally.

This entry was posted in Tips'n'Tricks and tagged . Bookmark the permalink.

252 Responses to CLion answers frequently asked questions

  1. Dominic Richter says:

    Hello,
    is CLion later for x86-Systems available or only for x64?

    Thanks
    Dominic

    • Anastasia Kazakova says:

      We will support x64 architectures only, mainly cause we are using 64-bit JDK.

      • Kirill says:

        So could you put this information (about not supporting x86) on the download page of Clion? I haven’t watched system requirements, and wasted about a hour to download and install Clion on my old laptop with Windows XP. Surprisingly, installation completed successful and haven’t thrown any errors.

        • Anastasia Kazakova says:

          The information is there, just click to the system requirements on the download page and check the popup.

          However, you are right that some kind of an IDE built-in warning could be useful. We’ll consider if we can add it. Thanks!

  2. Lex Chou says:

    Will you add remote project in the future?
    The remote project I mean: edit/run/debug a project that hosted in another machine, then I can write and debug a linux program on a linux machine with powerful hardware from my windows/mac laptop.
    Eclipse has a bundle to provide this feature, but that’s quite buggy.

  3. Dr. Sky Lizard says:

    Regarding the screenshot shown at: “Parameter info: Cmd+P on OS X, Ctrl+P on Windows/Linux: Shows the method call’s arguments with types”

    Why is the code completion so ugly?
    I know C++ is damn ugly but some cleanup would be really nice!
    The inline namespaces should be hidden as well as the __ in the parameter names, etc. to make it human readable for mere mortals.

  4. It would be great if you will make a CLion Plugin Option for IntelliJ Ultimate. Since we develop Java Applications that use some JNI. And for that a Plugin would be great. 😉

  5. Jao says:

    Hi all,

    Is it possible to set a custom cmake configuration directory ? We heavily use cmake in our every day task and have some script tools that run the cmake command in a specific directory for some deployement reason. We want to keep this behavior so that clion just use this directory instead of creating his own. Netbeans and QtCreator support this feature.

    Best regards,

    Jao

  6. Al Ez says:

    Two questions:
    1. Is that possible to execute xcodebuild instead “normal build”?
    2. Does CLion debugger support “attach to process”?

    Thanks!

    • Anastasia Kazakova says:

      1. CMake build system is really a general one, so you can change the actual generator via setting CMAKE_GENERATOR var. So probably settings this variable to “Xcode” we’ll help.
      2. https://youtrack.jetbrains.com/issue/CPP-1001

      • Al Ez says:

        For 1., here is the change I made in CMakeList.txt:
        SET(CMAKE_GENERATOR xcodebuild -project /path/abc.xcodeproj)
        Unfortunately it does nothing. Could you help?

        • Anastasia Kazakova says:

          Looks like passing CMAKE_GENERATOR to the CMakeLists.txt as: SET(CMAKE_GENERATOR “Xcode”)
          doesn’t work as it should be. This is probably some cmake issue.
          The other option will be calling cmake with argument -G Xcode, but right now in CLion you cannot pass parameters to cmake command: http://youtrack.jetbrains.com/issue/CPP-188. We’ll fix this in future.

          • Al Ez says:

            I tried to add the next command to CMakeList.txt:
            execute_process(COMMAND xcodebuild -project /…/xxx.xcodeproj)
            It does execute xcodebuild when CLion “builds” CMakeList.txt. Is there any way to make CLion to rebuid CMakeList.txt on each build?

          • Anastasia Kazakova says:

            If you mean automatically I’m afraid no. CLion just calls CMake build that checks changes in CMakeLists.txt files.

          • Anastasia Kazakova says:

            Sorry guys, but unfortunately only Makefiles generator is supported as for now. Check the subissues here (https://youtrack.jetbrains.com/issue/CPP-274) for other build systems support. CLion will rely now on generated Makefiles structure.

  7. Great product, really impressed so far.

    When debugging stdlib, it looks like you are not picking up the symbols from there. Is that something that can be configured or something you are working on?

  8. Luke Swart says:

    I hear CLion supports C++03 and C++11, along with other languages. Which one is default? How can I change/view this setting?

    • Luke Swart says:

      Nevermind, I think I figured it out. I passed add_definitions(-std=c++11) to the end of my CMakeLists.txt file. Details were found here: http://stackoverflow.com/questions/25899738/clion-disable-c98-mode-in-favour-of-c11

  9. Rohin Gopalakrishnan says:

    Great Product, extremely impressed with Clion.

    However, it says License will expire in 60 days but I want to be able to use Clion for education and in competitions (hackathon’s and such) for longer than that, but you have still not provided licensing option for this product. So, what would I have to do after my 60 days of license expires?

    • Anastasia Kazakova says:

      We hope to provide another EAP build.

      • Abhishek Kaushik says:

        My Clion expired in 12 days. Any reason? for some reason, downloading new EAPs frequently is not feasible. What could be the reason for it to expire this way?

        • Anastasia Kazakova says:

          EAP builds are for testing and evaluation purposes, so they are limited in time. Recently we’ve published a new build with a long list of improvements and bug fixes. Please, download it here: http://confluence.jetbrains.com/display/CLION/Early+Access+Program

          • AndreW says:

            i have just installed Clion , and loved it. its awesome. im a student, so this ide is very good in a lot of ways. but unfortunaly, it will expire in 6 days… is this normal? i would hope for a longer period .6months or a year at least. 😉
            thx.

          • Anastasia Kazakova says:

            This is pre-relase EAP builds. We will place a new one before it’s expired. When 1.0 is released you can apply for a free student program to use CLion.

  10. Äxxl says:

    maybe Im blind, but I cant find the function in the keymap to switch between header and implementation

  11. Äxxl says:

    hmm, that was meant to be a new post…

  12. Alexey Min says:

    After installing EAP CLion, I created a test project “Hello, world!” and what do I see?
    CLion complains on first line #include “Cannot find ‘stdio.h'” (also as printf, Can’t resolve variable ‘printf’)
    If change this line to #include “/usr/include/stdio.h” – all OK, all resolved
    If change this line to #include and explicitly add INCLUDE_DIRECTORIES( /usr/include ) to CMakeLists.txt – that doesn’t help, CMake syntax analyzer still complains that it cannot find stdio.h

    In all cases (just or “/usr/include/stdio.h”, with or without explicit INCLUDE_DIRECTORIES) project builds successfully, but successful build doesn’t help CLion to find anyway.

    Didn’t see this problem in windows, there complex wxwidgets project with custom cmake modules loaded OK with no unresolved headers/symbols in IDE. In Gentoo Linux, such a fail with such a simple program :) I can’t explain this, any ideas?

  13. Luke Swart says:

    Are the “assert” statements not functional in CLion? I am using the Debug run configuration, and “assert (false)” does not terminate the program . I cannot find another option that enables asserts.

  14. Jay says:

    How does CLion work for C code bases? I’m trying to setup the postgres source with CLion, point the sources to the src folder, and I am not able to navigate the code (lin=ke struct definitions, usages in other files etc) what am I missing?

    • Anastasia Kazakova says:

      Have you add the source and header files to the project? The files that are not in the project are greyed out in the project tree. You can check it there.
      CLion gets this information from the CMakeLists.txt files in the following way:
      set(SOURCE_FILES main.cpp)
      add_executable(my_exec ${SOURCE_FILES})
      This is how CLion now knows that main.cpp is included in your project. As for now, header files (in case their names differ from the appropriate .cpp files already added to the SOURCE_FILES variable) should also be included in the project in that way.

  15. George says:

    In the “Project” tool window there is no directory structure; thousands of files are listed at the same level. I’m not sure why that happens, maybe it’s because my CMakeLists.txt file is not located at the root directory of my project, instead it’s inside a subdirectory.

    Is there a way to have a nice project view without having to move my CMakeLists.txt?

    • Anastasia Kazakova says:

      This should not be a problem. Could you please show the sample structure in your CMakeFile? And please add some screenshot of the problem from the project view? You can send them to the clion-support@jetbrains.com address if it’s more convenient to you.

      • George says:

        Thanks, I just did.

        • George says:

          For the benefit of others, I’m including here the answer I got back from the CLion team:

          These “plain” files are sources files located outside of the project root.
          By default the project root is the parent folder of the main CMakeLists.txt file.
          When CLion detects them, it simply adds one by one, since it can’t make assumptions about the project structure.

          The easiest solution is to change project root using the context menu.

          Thank you!

  16. Exel says:

    Hello!
    I have some problems with running a debuger under ide.
    Working on win7, using cygwin64.
    Running program in normal mode is okey, but running in debug mode fails with message
    “ExecutionException: During startup program exited with code 0xc0000135.”
    I’ve tried to run exe file itself and it works successfully, also it works under cygwin gdb:
    —————————

    $ gdb /cygdrive/c/Users/Андрей/.clion10/system/cmake/generated/f48e84c8/f48e84c8/Debug/clion_test.exe
    GNU gdb (GDB) 7.8


    Reading symbols from /cygdrive/c/Users/Андрей/.clion10/system/cmake/generated/f48e84c8/f48e84c8/Debug/clion_test.exe…done.
    (gdb) run
    Starting program: /cygdrive/c/Users/Андрей/.clion10/system/cmake/generated/f48e84c8/f48e84c8/Debug/clion_test.exe
    [New Thread 5452.0xc8c]
    [New Thread 5452.0xfa4]
    Hello, World!
    1
    [Inferior 1 (process 5452) exited normally]
    (gdb)
    —————————
    here are some data from ‘procmon’ that may be useful for you to realize what’s happening:
    http://i.zlowiki.ru/141113_baf999de.png
    (‘process start’ and ‘process exit’ are highlighted)

    Thanks!

  17. garcia says:

    hello, I have a question: how to disable auto include header?
    eg:
    I pick EXIT_SUCCESS by autocomplete, and the clion insert “#include ” automatically. how to disable it?

  18. Andrew says:

    I love your products but i’m very annoyed. You said to install the latest version of cygwin which is 1.7.33 at the time and it says it’s not supported. The site also doesn’t have a download list of the older versions. Help please?

    • Anastasia Kazakova says:

      You can work with 1.7.33, but the IDE just warns you that new version is not supported (that mainly means that we haven’t tested the CLion with it yet).

  19. Vladimir Semenov says:

    What about adding folders with includes which are not located under project root. For example, i have OpenSSL, libCURL and Qt installed in some other locations.
    My project heavily depends on them (especially Qt). But since there is no way to add external libs (like in Eclipse) the whole IDE becomes useless – it cannot parse any file from the project.
    Can you please advice any solution or just fix this in future release?

  20. Exel says:

    IDE underlines ‘kv’ in push_back(kv) with error message, but building goes without any errors.

    • Exel says:

      it seems < > are not supported.. ok, i’ll replace them with @

  21. Sumit Pareek says:

    Hello,

    My CLion EAP build expires on 29th November. Any way I can extend this and still keep using it?

  22. Vladimir Semenov says:

    Did not find the keyboard shortcut for switching between include and source files. In Eclipse keymap it is Ctrl + Tab. Very useful thing really. Does it exist in CLion? If not – can this action be implemented?
    Thank you in advance

  23. Kusuma says:

    Is there installer for Windows 32 bit version ? I have tried the windows installer and run on my Windows 32 bit but it does not work. Thanks.

    • Anastasia Kazakova says:

      No, we are not supporting 32b Win.

      • Sergio says:

        Will you ever support 32bit Windows?

        • Anastasia Kazakova says:

          We afraid no. Memory limitations on 32bit OS look unacceptable for us.

          • fassl says:

            Really? How much memory does this IDE eat up? If it’s getting any near to the 32bit limit i am not going to consider this IDE at all.

          • Anastasia Kazakova says:

            We are working constantly on memory usage reducing, but C++ language is tricky enough and to provide reliable refactorings that handle all usages correctly, smart completion that filters the result by type, many code generation options, etc. CLion needs to get as much knowledge about your code as it can. Among other things it means that CLion needs to parse all the code and all the included headers and resolve all this code correctly, taking into consideration C++ flags, defines, etc. This can take significant amount of memory that depends on code complexity rather than it’s LOC.

  24. Alan Fu says:

    Java 8 on OS X are not supported by EAP version, what about v1.0?

  25. Symbol says:

    Hi,

    Could I only use Clion to view codes without any bulid?
    I imported the source file but failed to ‘Find usages’ in current project, or ‘Goto definition’, and so on.

    • Anastasia Kazakova says:

      You should have the CMake-based project, where CLion will take all the information about it. CMakeLists.txt files should describe all the files included into the prj, so that resolve (and thus Find Usages and navigation actions) works. If you don’t have CMake prj, you can try to use import functionality in CLion to import your current prj to CMake.

      • Symbol says:

        Thanks for your suggestions.
        I used the File/Import Project to import the project. I can see the CMakeLists.txt created by CLion and it has listed all source files. But the navigation actions(include Find Usages)still don’t work.
        Need I do more preparations? For there is no CMake in my system, I can’t build it. I only want to try the code view functionality of CLion.

        • Anastasia Kazakova says:

          All the intellisense will work only with correct CMake in your project. Please, check all the files are added to the sources (.cpp as well as .h). Then wait till the indexes are built and symbols are loaded. Are the files with usages included into the CMake project? Is symbol you are searching for marked as red in CLion?

        • Anastasia Kazakova says:

          You can also try to check tools preferences (in Settings/Preferences go to Build, Execution, Deployment | Toolchains) – problems will appear with red mark there, and then CMake tool window for possible CMake errors (View | Tool Windows | CMake) on your prj.
          File | Invalidate Caches and Restart action to be sure all the useful information on CLion side is built fully and correctly.

          • Symbol says:

            The symbol which I want to find usages is not marked as red. Also, I can’t see the index building process. But I found that there is no MinGW in my system. Will it influence the navigation actions? I don’t need to compile it in this system and just want to view it.

          • Anastasia Kazakova says:

            CLion needs CMake, make and gcc (that is MinGW or Cygwin on Windows) to work properly (you can check the system requirements here: https://www.jetbrains.com/clion/quickstart/). It actually calls CMake command when loading your prj and collects a lot of useful information from the compiler (for example, compiler defines) to resolve all the code correctly.

  26. Dindar says:

    Hi,
    I could not find any way to add an external library to my project other than editing the CMakeList file. I would expect from a good IDE to provide me some GUI to do that. Why not provide us with such GUI and auto-edit the CMakeList file in background?

  27. Avin says:

    Hi,
    I found a strange issue , when a “printf” apperas before a “scanf”, the “printf” will not return until the “scanf” returned, codes below can show the issus:

    int main() {
    int a = 0;
    printf(“print input student infos.”);
    scanf(“%d”, &a);
    printf(“%d”, a);
    }

    I wander that is a bug, please check that, thx!

  28. wener says:

    How to config to use with brew installed library ?

    • Anastasia Kazakova says:

      What do you mean? To use a library in your prj code? Then just configure it properly in CMake files in your prj.

  29. Trond Norbye says:

    I really like what I see so far, but I’m struggling a bit with tweaking my CMake project to work with CLion. When we’re building from the command line we normally set a number of options through -D to cmake, but I’d like to add “default values” to these when called from clion (like disabling one of our module where we use ADD_SUBDIRECTORY(source binary) which isn’t supported in CLion currently).

    Does CLion “identify itself” in some way so that I can check for that in my CMakeLists.txt file? I tried to look at one of the generated CMakeCache.txt files, but I couldn’t find a variable named CLION/JETBRAINS.. Any suggestion on how I should work around this?

    • Anastasia Kazakova says:

      Set the variable through the CMakeLists.txt or CMake Cache (cache editor is available in CMake tool window). CLion doesn’t support right now passing the env variable to cmake, or setting options for the cmake command. However we have these features in plans (https://youtrack.jetbrains.com/issue/CPP-188).

      • Trond Norbye says:

        That doesn’t really solve my problem. For instance my cmakelists.txt detects if I’m missing some dependencies, and would inflate those into the installation directory. Normally I’m passing the -D option to cmake when I’m running it to make sure I install into a temporary directory, but when I’m starting through CLion it would use the default, causing /usr/local to be populated. I can’t check in my CMakeLists.txt if the install directory was specified or not. The easiest fix for me would be to have CLion to pass a variable like: -D JETBRAINS_CLION_IDE=true or something, so that I could detect that in my CMakeLists.txt and then override all of the appropriate variables (I’m guessing that my current workaround will be to wrap the bundled cmake binary in CLion with a wrapper script that does that…)

  30. doomer says:

    How do I attach the debugger to a running process?

    Thanks,

  31. Naveen Rai says:

    I just now upgraded to EAP build and started facing issue of malloc failure that use to work on previous builds of CLION.
    is this functionality broken ?

  32. TimYuan says:

    I test a easy project with CLion in Linux. A header called 2.h is located in /usr/local/include . I add include_directories(“/usr/local/include”) to CMakeLists.txt, but CLion still tell me that 2.h can’t be found. However, the build and run process work well. According to your tips, it’s impossible.

  33. joao says:

    it says that the latest version of cygwin 1.7 environment is not supported…

    • Anastasia Kazakova says:

      It doesn’t mean you can’t use it. This is just a warning showing that the exact version was not tested with the CLion. The message will go away with the next EAP build.

  34. danielle says:

    I have no idea how to download the environment or what is considered a safe site to download it from. Can anyone give me the easiest, most complete way to download an environment to run a very simple c++ program?

  35. John says:

    Downloaded Clion the other day and for the most part it is working great but I have a recurring problem that I have been able to fix occasionally but don’t know what’s causing it.

    Basically when I open a file to edit for the first time I am unable to actually enter text. I can select, copy/paste, and delete but not type any new code. In most of the files I’ve been using I’ve been able to click around with what appears to be a random combo of keys to get it out of this mode but I have to do it on a file by file basis and haven’t figured out what I’m actually doing to get it into an editable state. I feel like there is a setting or mode that it’s in that I have turned on that I don’t know how to turn off. I have a colleague also using Clion who doesn’t have this problem at all. Please let me know if this is an actual problem or just me missing something. Thanks in advance for your help.

    • Anastasia Kazakova says:

      Have you installed any additional plugins during CLion installation?

      • John says:

        I do remember selecting the option to install 3 additional features that I was prompted to select yes or no on. I wasn’t sure of their function but figured I could determine it later since I was going to be exploring the different use cases of the program. I don’t remember what they were. I have not gone specifically to the plugin repository to download any additional plugins.

        • Anastasia Kazakova says:

          You can check installed plugins via Settings (Preferences) | Plugins menu.

          • John says:

            Ok so previously it appears I had quite a few active plug ins.

            CSS Support
            CVS Integration
            Git Integration
            GitHub
            hg4idea
            HTML Tools
            IdeaVim
            JavaScript Intention Power Pack
            JavaScript Support
            Markdown
            Preforce Integration
            REST Client
            Subversion Integration
            Task Management
            TeamCity Integration
            Terminal
            TFS Integration
            XpathView + XSLT Support

            I’ve now turned off all but
            Git Integration
            GitHub
            IdeaVim
            Task Management
            Terminal
            XpathView + XSLT Support

            and have applied the changes but the files still have the same inability to type text. While allowing me to copy/paste and delete.

          • Anastasia Kazakova says:

            Could you please disable the IdeaVim plugin and try again?

  36. Trond Norbye says:

    How can I change the default suggestion of using .cpp as the file extension to .cc? Our entire codebase use .cc for C++ files .. (and the menu item “new C++ class” don’t allow me to change the extension).

    • Anastasia Kazakova says:

      You can select “Add C/C++ source file” and edit extension in that dialog, associated header file can be created from that dialog together with the C++ class as well.
      If you still want to select file extension in “New C++ class” dialog, could you please submit it as a feature request to our tracker: https://youtrack.jetbrains.com/issues/CPP?

  37. John says:

    You should change this page because it suggests to use ‘CMAKE_RUNTIME_OUTPUT_DIRECTORY’ which is now not recommended. CLion has a setting for you specify an output folder. (verified with 141.351.4 build)

    Settings->
    Build, Execution, Deployment->
    CMake->
    Build output path

    • Anastasia Kazakova says:

      Thanks. Will do.
      Still we introduce quite many changes in EAP builds, so some old posts are a bit out of date. Follow the blog to get the updates and learn the news.

  38. John says:

    I keep my CMakeLists.txt files separate from my source code. Cmake-gui handles my folder structure without problems.

    top/
    – build/cmake/CMakeLists.txt
    – src/main.cpp

    I tried File->Open with ‘top’ as well as ‘build/cmake/CMakeLists.txt’ file, but I did not see an active configuration that I could use to build my project. I am on Windows, so maybe that is part of the problem. (tested in 141.351.4)

    Will my structure be supported eventually? I love CLion! Thanks!

    • Anastasia Kazakova says:

      Simple change the project root after opening the top CMakeLists.txt file and CLion will learn that your source code is placed under some other folder. Do this through Tools | CMake | Change project root

  39. Mateusz says:

    [Feature Request]

    Being a fan of Clion, I’d love to see proper view of function documentation (Ctrl-Q)
    made with ‘//’ and ‘///’ type of comments. Some libraries (like Boost) use this kind of mechanism, but I can see only first line of the comment. With this – the IDE is perfect. (It would be a cool feature for Resharper C++ too! … as far as I know it doesn’t support it).

    Thanks

  40. Al Ez says:

    When starting debugger on my project CLion constantly prints the next message after half a minute:

    Command timed out
    Process finished with exit code 0

    Is this a bug?

  41. francesco says:

    Can you add rename file function in the ide.. other fix is that array[] and *array are not equal and get error but gcc works fine..

  42. Alexander Aprelkin says:

    Will CLion be integrated into Intellij IDEA? i.e. will IDEA support C++?

  43. Boulevardz says:

    When I start CLion, it loads an existing project by itself and there is no way to stop it. It infinitely builds symbols. It does that even if I stop loading a project. Every time I open a project it infinitely build symbols. After few minutes the whole CLion disappears and I have to start it again and it does the same thing over and over again. Is there a way to stop this? Your help is appreciated.

  44. Boulevardz says:

    ran a simple CLion project with only two directories which each contain a single file. However, I was getting this message “Out of Memory”. I increased the Xmx from 2GB to 4GB. I believe this is more than enough. How can I fix this problem?

    This is the settings in the clion64.exe.vmoptions file:
    -Xss2m

    -Xms256m

    -Xmx4000m

    -XX:MaxPermSize=350m

    -XX:ReservedCodeCacheSize=96m

    -XX:+UseConcMarkSweepGC

    -XX:SoftRefLRUPolicyMSPerMB=50

    -ea

    -Dsun.io.useCanonCaches=false

    -Djava.net.preferIPv4Stack=true

  45. Bob says:

    Is there an ‘open file under cursor’ option (for include directives)? I haven’t managed to do such a thing.

  46. Matěj Kripner says:

    Hello,
    is it possible to move clion’s config files (.clionXX)? When I try to do it without notifying Clion, it move it back.

  47. Celito Felipetto says:

    I’m having some trouble using assertions on the IDE. I put in the first line of my main function a assert(false). In Debug configuration the assert works and the program ends with a 3 code, but since I checked in the “exception breakpoints” config the checkbox “When any is thrown enabled” I was expecting it to show me the call stack whenever the assert fail. Am I missing something? Is this a known bug or am I doing it wrong?

    • Anastasia Kazakova says:

      Could you please provide some additional info:
      – What OS are you on, what debugger are you using and which CLion version (any stable 1.0.x or 1.1 EAP)
      – What do you actually get? Could you please describe or attach the screenshot?

      • Celito Felipetto says:

        I’m on Windows 7 64-bits, using CLion 1.0.5 with MinGW-w64 4.8.3, CMake 3.2.3 and GDB 7.8.1.

        There is no message error besides: “Process finished with exit code 3” in the debug console. The console app just close after launch. I’ve simplified the code to:

        #include

        int main() {
        assert(false);
        }

        and even then the program doesn’t got into a exception breakpoint as expected.

        The only way I can see the assert is if I use ‘Run’ instead of ‘Debug’, in this case the program ends with

        “Assertion failed!

        Program: C:\[…]\test.exe
        File: C:\[…]\main.cpp, Line 9

        Expression: false

        This application has requested the Runtime to terminate it in an unusual way.
        Please contact the application’s support team for more information.

        Process finished with exit code 3”

        I already try changing the MinGW-w64 version, but it doesn’t seems to make any difference for it.

  48. Hi,

    I want to vote for Makefile support. The lack of it is the only reason I cannot yet move my projects over to CLion. I have created an account ‘packwoodm’, but I can’t find a way to log in to vote for the feature. I just don’t get a link to vote.

    Regards,
    Martin.

  49. David Smith says:

    So I was trying to make a text RPG game, and I was following instructions on a website.
    On the second step, the website said to make a header file name “dialogue.hpp.” Every time I try to make a header file named “dialogue.hpp” it gives me an error saying “File ‘dialogue.hpp’ already exists in the selected location, please choose another name” Afterwards I started making names that I knew were not used in any files in my computer, and I get the same error. What do I do?

    • Anastasia Kazakova says:

      Can you maybe list all the files in the corresponding directory and send us some sample project? We’ll check, what’s going on. Use clion-support at jetbrains.com for this.

  50. Vikrant Jamwal says:

    While installing CLion i came across some issue please help !

    Environment : For MinGW to work correctly C:\Program Files\git\usr\bin\sh.exe must NOT be in your PATH

    Please help !

  51. Alok says:

    I was not able to login to youtrack issue tracker website to drop a comment. I tried IE 10 and Chromium. I have of course validated my account on email already. I enter my login id and password, it shows that I am logged in and in couple of seconds goes back to logged out state.

    I was trying to enter a comment on
    https://youtrack.jetbrains.com/issue/CPP-494

    Comment is as follows:
    +1
    Any update on when this support will be available? I have a big project which uses Makefile. It will be very useful if CLion supports importing existing Makefile projects.

    Thanks.

    • Anastasia Kazakova says:

      Thanks. Not sure, what has happened with YT to you, probably try once more – if still no success write to our support with account details, we’ll have a look.

      Regarding the Makefiles support, we are considering it for the next year. However currently no exact plans or estimations I can provide to you.

  52. Alok says:

    I am trying to debug my Makefile based project which I have imported in CLion. I created a simple CMake file as below
    cmake_minimum_required(VERSION 2.8.4)
    project(Project1)

    set(CMAKE_CONFIGURATION_TYPES “Debug;Release” CACHE STRING “” FORCE)
    set(CMAKE_CXX_FLAGS “${CMAKE_CXX_FLAGS} “)

    add_custom_target(myProject COMMAND make -j4 DEBUG=1
    CLION_EXE_DIR=${PACKAGE_DIR})

    CMake tool shows me error: CMake executable not specified. I tried adding add_executable(myProject ${SOURCE_FILES}) with correct source files, but still same error.

    Where as on Edit Configurations page, I cannot select any Configuration. The drop down for Configuration is empty. At the bottom I get error Error: Configuration is not specified..

    When I try to debug the program, I get a warning message Configuration is still incorrect. Do you want to edit it again? I click on Continue Anyway, which compiles the program as I expect and it generates the correct executable file as well. But it cannot run the executable because of the errors in the Configurations.

    I have posted this same question at

    http://stackoverflow.com/questions/33361477/error-while-working-with-makefile-project

    • Anastasia Kazakova says:

      Configurations are created automatically by CLion for each target you have in your CMake + you can add your own, specifying the executable in it to be run/debug when running/debugging this configuration. Try making a proper configuration and then running it.

      Have you tried just in case to run cmake command from the terminal on your project? Does it work?

      The problem also could be that add_custom_target is not recognized correctly by CLion (https://youtrack.jetbrains.com/issue/CPP-1028).

      • Bernhard Wagner says:

        I’m adding several targets in my CMakeLists.txt using the standard Syntax, e.g.:
        add_executable(stringtooltest StringTool.h StringTool.C StringToolTest.C)

        However, the configurations are not created. Reloading CLion, CMakeLists.txt doesn’t change the situation. I can’t create the configurations manually either, because the executable does not appear in the drop down list.

        Thank you

        • Bernhard Wagner says:

          I believe to have solved it: I had a CMake option in the global Preferences that seemed to have interfered.
          Case closed.

  53. Adnan says:

    Clion file stream isn’t working while that code working well with other IDEs

    Can you guide me about?

  54. Adnan says:

    c++ fstream isn’t working

  55. yejingchen says:

    Hello, I have problems using external libraries like GTK in CLion.

    My os is fedora 22, CLion 1.1 version is 1.1 and GTK+ 3.16.7.
    I followed this article to configure CMakeLists.txt, and the program builds and runs successfully when building from the command line (using cmake . ; make), but in CLion it failed to build, complaining that gtk/gtk.h cannot be found.

    Here is my source files:

    CMakeLists.txt
    —–
    cmake_minimum_required(VERSION 3.3)
    project(cirkle)

    set(CMAKE_CXX_FLAGS “${CMAKE_CXX_FLAGS} -std=c++11”)

    find_package(PkgConfig REQUIRED)
    pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
    include_directories(${GTK3_INCLUDE_DIRS})
    link_directories(${GTK3_LIBRARY_DIRS})
    add_definitions(${GTK3_CFLAGS_OTHER})

    set(SOURCE_FILES src/main.c)
    add_executable(cirkle ${SOURCE_FILES})
    target_link_libraries(cirkle ${GTK3_LIBRARIES})

    src/main.c
    ——-
    #include

    int main(int argc, char *argv[])
    {
    GtkWidget *window;

    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    g_signal_connect(window, “delete-event”,
    G_CALLBACK(gtk_main_quit), NULL);
    gtk_widget_show(window);
    gtk_main();

    return 0;
    }

    • Anastasia Kazakova says:

      Just tried your sample. Looks like for me it was built correctly in both ways: command line and CLion. Could you please check, which target are you actually building in CLion? Try to select Build All target and call build.

    • Anastasia Kazakova says:

      Also, just in case, if the target is correct, try to build from command line with the bundled CMake you are probably using in CLion (it’s located in clion-/bin/cmake/bin/cmake).

  56. Alexey says:

    Where/how to see message(STATUS “Some message”) results?

  57. viboes says:

    Hi,

    I’m trying to create a project for the maintenance of a Boost libraries.

    The build system request to do fist an installation of the headers on the boost directory. IN Windows this is done by copying the file, so the header files are duplicated. In Unix-like system symbolic links are used instead instead. Could this be a problem?

    Each library has each own git repository. Should I create a project by repository/library?

    Ah, from the presentation the product seams really awesome.

    Thanks for moving the lines,
    Vicente

  58. Shizhi Jiang says:

    I have cloned the sample for gtest on github. But it didn’t work anyway. Well, it threw error like this :’_XXX’ was not declared in this scope(files in gtest). Many methods in stdlib.h turned red at the editor. What should I do to make it right?

    • Anastasia Kazakova says:

      Which exactly sample have you cloned? And what OS and compiler are you using? Could you also please show the screenshot of settings page: Build, Execution, Deployment | Toolchains?

  59. Daniel says:

    Hi:
    I’m new to code.Here is my question:I write a function in test.cpp, and I want to debug it alone.How can realize it ? I click the debug and the Clion always runs the mian.cpp.
    Thanks.

    • Anastasia Kazakova says:

      For running/debugging CLion calls a run/debug configurations. Without any additional config every configuration corresponds to the target in CMake file. So in your case there is one target that includes running main.cpp. You can call your function in main.cpp, placing a breakpoint in your function in advance. The debugger will stop there. There is no option to run/debug just a function.

  60. jayjay says:

    Is it possible to tell clion to debug outside the built-in console (i.e. using tty terminal like /dev/pts/0) ? This would be really helpful when debugging projects with ncurses where the initscr() function does not recognize the built-in console (“Error opening terminal: unknown.”). Eclipse/Helios has the possibility to configure this setting but I can’t find an equivalent in clion 1.2.

  61. Bastian Reitschuster says:

    Hi,
    and thank you very much for your efforts in making an awesome tool.

    “It was about time”

    Just a really annoying problem: Using a german keyboard layout i can’t type . at any place. A little annoying, working only with Pointer. I check for solution further on the latest Clion version.

    Greetings,
    Bastian

  62. heo says:

    How can I rename the project?

  63. Is there a way to rename directory where CLion stores project settings? From .idea to something else so that CLion and IDEA do not clash?

    • Anastasia Kazakova says:

      I’m afraid currently it’s not possible. Do you have the case with 2-language project that you open in both IDEs simultaneously?

  64. yep, that’s the case and IDEA and CLion are fighting with me being the loser

  65. Rajan BhaTT says:

    Guys i have a problem of fatal error: iicseq.h: No such file or directory
    /*0892803360*/#include “iicseq.h”

    the same problem for the other header file as well.
    so how to resolve this problem. i am newer for this compiler…

    • Anastasia Kazakova says:

      First, is it an IDE only problem or you’ve failed to compile it without CLion? Do you have a CMake project?

  66. feic says:

    when I defining macros at include files,clion always building symbols .

  67. Why doesn’t it resolve symbols from the standard include files without me having to explicitly add them to the project? This causes building symbol and i9ndexing time to take ~ 20 minutes.

  68. Ashwin Bansod says:

    Hi,

    I am facing a “Build Failed” error for simple Hello World program in CLion.
    I have installed Cygwin GDB GNU GDB 7.8. It can be verified in setting of CLion.
    But when I tried to build the program, it is giving the Build Failed error. If I run the same build command on the command line it is properly executing and generating the output exe.

    Kindly help me. What should I do to resolve this error..???

    Thanks in advance.

  69. Ruslan Yermakov says:

    Hi,
    I have a really terrible problem. I want to work with Clion on Ubuntu. I have already installed it. BUT:
    When I open Clion(terminal- ./clion.sh) I immediately receive this message:(I have gcc compiler on Ubuntu, ,maybe I need to install mingw, for example, to fix this problem)
    (1) mistake: Error:The C compiler “/usr/bin/cc” is not able to compile a simple test program.
    It fails with the following output:
    Change Dir: /home/ruslan/.CLion12/system/cmake/generated/9284071b/9284071b/__default__/CMakeFiles/CMakeTmp
    Run Build Command:”/usr/bin/make” “cmTC_c3aa4/fast”
    /usr/bin/make -f CMakeFiles/cmTC_c3aa4.dir/build.make CMakeFiles/cmTC_c3aa4.dir/build
    make[1]: Entering directory ‘/home/ruslan/.CLion12/system/cmake/generated/9284071b/9284071b/__default__/CMakeFiles/CMakeTmp’
    /bin/sh: 1: Syntax error: Unterminated quoted string
    CMakeFiles/cmTC_c3aa4.dir/build.make:65: recipe for target ‘CMakeFiles/cmTC_c3aa4.dir/testCCompiler.c.o’ failed
    make[1]: *** [CMakeFiles/cmTC_c3aa4.dir/testCCompiler.c.o] Error 2
    make[1]: Leaving directory ‘/home/ruslan/.CLion12/system/cmake/generated/9284071b/9284071b/__default__/CMakeFiles/CMakeTmp’
    Makefile:126: recipe for target ‘cmTC_c3aa4/fast’ failed
    make: *** [cmTC_c3aa4/fast] Error 2
    CMake will not be able to correctly generate this project.

    all in all, I have 5 errors
    I will be really happy if someone could help me. Thank you in advance 😉

    • Anastasia Kazakova says:

      Hi,

      Are you able to run CMake on some sample program without CLion? Could you please try with the CMake bundled (you can find it in the directory where you unpacked CLion).

      MinGW is for Windows and it’s not about compiler actually, it’s about some extra ” in the cmake call somehow.

  70. Oleg says:

    When I type > and then want to add a space, CLion immediately suggests completion options and treats space button as if Ive chosen one of the options. Is there a way to disable autocompletion by space? This autocompletion is definitely not what I want when Im writing a for loop.

  71. Andy says:

    Can I create a project and link subdirectories to existing source, like in Eclipse-CDT? The case is that I am working on a very large code base, and importing in Clion takes forever.

    • Anastasia Kazakova says:

      You can use import project functionality that helps creating CMake files for existing sources. You need a valid CMake project to open in CLion.

  72. Justin says:

    Is there a way to tell or suggest where Cmake/Clion should find the make program?

    By default, using cygwin, CLion always finds an gmake.exe that came packaged with an old Matlab I have installed — even though cygwin’s make comes earlier in the path (in both cygwin and windows). And it won’t build with this.

    I can get it to work by setting the variable CMAKE_MAKE_LOCATION=/usr/bin/make.exe in the cmake cache. But this is often overwritten. It won’t do anything if I set it in the Settings->CMake options (with -D CMAKE_MAKE_PROGRAM=/usr/bin/make.exe) or if I set it in the project CMakeLists.txt file.

    • Anastasia Kazakova says:

      it’s not about CLion, it’s completely about CMake. CLion uses CMake, that by-turn knows where to find Make. Have you installed make from the Cygwin packages?

      • Justin says:

        Yes, I want to use the make program from cygwin’s package system, in /usr/bin/make.

        When I run “cmake .” under cygwin’s shell, it correctly finds the above make program. Only when run by Clion does cmake find the wrong program, and there appears to be no way to override the one CLion finds by use of the CMAKE_MAKE_PROGRAM variable, as you might do at the command line.

        • Anastasia Kazakova says:

          Do you use bundled CMake? Or one you’ve installed?

          • Justin says:

            I use the bundled CMake. On further investigation, it looks like providing the Cmake option “-D CMAKE_MAKE_PROGRAM=/usr/bin/make.exe” does work, as long as you enter it before the cache is built the first time (once it’s built, the variable is ignored). The reason it seemed it wasn’t working is it is unclear in CLion when the cache will be cleared and rebuilt and when not, and there seems to be no way to force it to.

          • Anastasia Kazakova says:

            First, if you use the CMake installed most likely it will find make without any additional effort.
            Bundled CMake should definitely know where to search for make, so you need to provide this path.

            Regarding the cache – this variable is filled once, so you need to drop the cache to change it. In the latest EAP build there is an option to clear CMake cache in the CMakeCache tool windows (or in Tools | CMake). In the previous versions you need to drop the whole IDE indexes to clear CMake Cache (File | Invalidate Caches and Restart)

          • Justin says:

            I can tell you that in my case the included Cmake systematically fails to find the correct make program, instead finding a gmake.exe that is later in the path and is a part of MATLAB.

            Good to hear that the new build will have an easy way to clear the cache.

          • Anastasia Kazakova says:

            Probably you have some corresponding paths in PATH var going ahead of the correct one.

      • Justin says:

        sleep${IFS}0

  73. Dee says:

    I’m trying to write a server, and I normally have to run it from the terminal using sudo – I believe because listening on a port requires admin privileges. Is there a way to run a program using sudo from CLion?

  74. Kazi Ashik Islam says:

    How can i uninstall CLion 2016.1 from ubuntu(15.10)?

  75. Akshat says:

    In Ubuntu, where should i install CLion? I don’t want to install it in my Home directory. Instead, i would like to install it in my ‘/usr’ folder. Is it the right directory for installing it, or should i choose ‘/usr/share’ or some other directory?

    • Anastasia Kazakova says:

      It’s up to you to select a place for the installation. So you can install in /usr or any other directory.

  76. Andrew Somerville says:

    Your “cpu snapshot” link is 404’d:

    http://devnet.jetbrains.com/docs/1087

  77. Dmitry Antipov says:

    How can I limit CLion from eating plenty of memory while indexing?
    8Gb seems to be not enough for comfort work!

    Clion 1.2, Ubuntu 14.04.

  78. Timo Moto says:

    I noticed that CLion creates build type directories irrespective of the build type I have chosen. Is there any way to prevent this?

  79. Milan says:

    I need a help. I installed Clion on windows 7 64 bit. When I click build program (Simple “Hello world”) output is:
    “C:\Program Files (x86)\JetBrains\CLion 2016.1\bin\cmake\bin\cmake.exe” –build C:\Users\D\.CLion2016.1\system\cmake\generated\helloworld-1ffd7f34\1ffd7f34\Debug –target HelloWorld — -j 2
    [ 50%] Building CXX object CMakeFiles/HelloWorld.dir/main.cpp.obj
    In file included from c:\mingw\include\wchar.h:208:0,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:44,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\postypes.h:40,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\iosfwd:40,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ios:38,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ostream:38,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\iostream:39,
    from C:\Users\D\ClionProjects\helloworld\main.cpp:1:
    c:\mingw\include\sys/stat.h:173:14: error: ‘_dev_t’ does not name a type
    struct _stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:173:14: error: ‘_ino_t’ does not name a type
    struct _stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:173:14: error: ‘_mode_t’ does not name a type
    struct _stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:173:14: error: ‘_dev_t’ does not name a type
    struct _stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:173:14: error: ‘_off_t’ does not name a type
    struct _stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:173:14: error: ‘time_t’ does not name a type
    struct _stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:173:14: error: ‘time_t’ does not name a type
    struct _stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:173:14: error: ‘time_t’ does not name a type
    struct _stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:180:13: error: ‘_dev_t’ does not name a type
    struct stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:180:13: error: ‘_ino_t’ does not name a type
    struct stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:180:13: error: ‘_mode_t’ does not name a type
    struct stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:180:13: error: ‘_dev_t’ does not name a type
    struct stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:180:13: error: ‘_off_t’ does not name a type
    struct stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:180:13: error: ‘time_t’ does not name a type
    struct stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:180:13: error: ‘time_t’ does not name a type
    struct stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:180:13: error: ‘time_t’ does not name a type
    struct stat __struct_stat_defined( _off_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:188:17: error: ‘_dev_t’ does not name a type
    struct _stati64 __struct_stat_defined( __off64_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:188:17: error: ‘_ino_t’ does not name a type
    struct _stati64 __struct_stat_defined( __off64_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:188:17: error: ‘_mode_t’ does not name a type
    struct _stati64 __struct_stat_defined( __off64_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:188:17: error: ‘_dev_t’ does not name a type
    struct _stati64 __struct_stat_defined( __off64_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:188:17: error: ‘__off64_t’ does not name a type
    struct _stati64 __struct_stat_defined( __off64_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:188:17: error: ‘time_t’ does not name a type
    struct _stati64 __struct_stat_defined( __off64_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:188:17: error: ‘time_t’ does not name a type
    struct _stati64 __struct_stat_defined( __off64_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:188:17: error: ‘time_t’ does not name a type
    struct _stati64 __struct_stat_defined( __off64_t, time_t );
    ^
    c:\mingw\include\sys/stat.h:195:17: error: ‘_dev_t’ does not name a type
    struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
    ^
    c:\mingw\include\sys/stat.h:195:17: error: ‘_ino_t’ does not name a type
    struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
    ^
    c:\mingw\include\sys/stat.h:195:17: error: ‘_mode_t’ does not name a type
    struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
    ^
    c:\mingw\include\sys/stat.h:195:17: error: ‘_dev_t’ does not name a type
    struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
    ^
    c:\mingw\include\sys/stat.h:195:17: error: ‘__off64_t’ does not name a type
    struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
    ^
    c:\mingw\include\sys/stat.h:195:17: error: ‘__time64_t’ does not name a type
    struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
    ^
    c:\mingw\include\sys/stat.h:195:17: error: ‘__time64_t’ does not name a type
    struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
    ^
    c:\mingw\include\sys/stat.h:195:17: error: ‘__time64_t’ does not name a type
    struct __stat64 __struct_stat_defined( __off64_t, __time64_t );
    ^
    In file included from c:\mingw\include\wchar.h:233:0,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:44,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\postypes.h:40,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\iosfwd:40,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ios:38,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ostream:38,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\iostream:39,
    from C:\Users\D\ClionProjects\helloworld\main.cpp:1:
    c:\mingw\include\io.h:335:21: error: ‘time_t’ does not name a type
    struct _wfinddata_t __struct_finddata_t (time_t, _fsize_t);
    ^
    c:\mingw\include\io.h:335:21: error: ‘time_t’ does not name a type
    struct _wfinddata_t __struct_finddata_t (time_t, _fsize_t);
    ^
    c:\mingw\include\io.h:335:21: error: ‘time_t’ does not name a type
    struct _wfinddata_t __struct_finddata_t (time_t, _fsize_t);
    ^
    c:\mingw\include\io.h:336:24: error: ‘time_t’ does not name a type
    struct _wfinddatai64_t __struct_finddata_t (time_t, __int64);
    ^
    c:\mingw\include\io.h:336:24: error: ‘time_t’ does not name a type
    struct _wfinddatai64_t __struct_finddata_t (time_t, __int64);
    ^
    c:\mingw\include\io.h:336:24: error: ‘time_t’ does not name a type
    struct _wfinddatai64_t __struct_finddata_t (time_t, __int64);
    ^
    c:\mingw\include\io.h:362:24: error: ‘__time64_t’ does not name a type
    struct __wfinddata64_t __struct_finddata_t (__time64_t, __int64);
    ^
    c:\mingw\include\io.h:362:24: error: ‘__time64_t’ does not name a type
    struct __wfinddata64_t __struct_finddata_t (__time64_t, __int64);
    ^
    c:\mingw\include\io.h:362:24: error: ‘__time64_t’ does not name a type
    struct __wfinddata64_t __struct_finddata_t (__time64_t, __int64);
    ^
    In file included from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\postypes.h:40:0,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\iosfwd:40,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ios:38,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ostream:38,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\iostream:39,
    from C:\Users\D\ClionProjects\helloworld\main.cpp:1:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:146:11: error: ‘::fwide’ has not been declared
    using ::fwide;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:153:11: error: ‘::mbsinit’ has not been declared
    using ::mbsinit;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:164:11: error: ‘::vfwscanf’ has not been declared
    using ::vfwscanf;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:170:11: error: ‘::vswscanf’ has not been declared
    using ::vswscanf;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:174:11: error: ‘::vwscanf’ has not been declared
    using ::vwscanf;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:191:11: error: ‘::wcstof’ has not been declared
    using ::wcstof;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:198:11: error: ‘::wmemcmp’ has not been declared
    using ::wmemcmp;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:199:11: error: ‘::wmemcpy’ has not been declared
    using ::wmemcpy;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:200:11: error: ‘::wmemmove’ has not been declared
    using ::wmemmove;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:201:11: error: ‘::wmemset’ has not been declared
    using ::wmemset;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:208:11: error: ‘::wmemchr’ has not been declared
    using ::wmemchr;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar: In function ‘wchar_t* std::wmemchr(wchar_t*, wchar_t, std::size_t)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:229:61: error: invalid conversion from ‘const wchar_t*’ to ‘wchar_t*’ [-fpermissive]
    { return wmemchr(const_cast(__p), __c, __n); }
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:228:3: note: initializing argument 1 of ‘wchar_t* std::wmemchr(wchar_t*, wchar_t, std::size_t)’
    wmemchr(wchar_t* __p, wchar_t __c, size_t __n)
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar: At global scope:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:248:11: error: ‘::wcstold’ has not been declared
    using ::wcstold;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:257:11: error: ‘::wcstoll’ has not been declared
    using ::wcstoll;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:258:11: error: ‘::wcstoull’ has not been declared
    using ::wcstoull;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:264:22: error: ‘__gnu_cxx::wcstold’ has not been declared
    using ::__gnu_cxx::wcstold;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:265:22: error: ‘__gnu_cxx::wcstoll’ has not been declared
    using ::__gnu_cxx::wcstoll;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:266:22: error: ‘__gnu_cxx::wcstoull’ has not been declared
    using ::__gnu_cxx::wcstoull;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:280:14: error: ‘std::wcstof’ has not been declared
    using std::wcstof;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:283:14: error: ‘std::vfwscanf’ has not been declared
    using std::vfwscanf;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:286:14: error: ‘std::vswscanf’ has not been declared
    using std::vswscanf;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:289:14: error: ‘std::vwscanf’ has not been declared
    using std::vwscanf;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:293:14: error: ‘std::wcstold’ has not been declared
    using std::wcstold;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:294:14: error: ‘std::wcstoll’ has not been declared
    using std::wcstoll;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:295:14: error: ‘std::wcstoull’ has not been declared
    using std::wcstoull;
    ^
    In file included from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ios:40:0,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ostream:38,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\iostream:39,
    from C:\Users\D\ClionProjects\helloworld\main.cpp:1:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\char_traits.h: In static member function ‘static int std::char_traits::compare(const char_type*, const char_type*, std::size_t)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\char_traits.h:330:39: error: ‘wmemcmp’ was not declared in this scope
    { return wmemcmp(__s1, __s2, __n); }
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\char_traits.h: In static member function ‘static const char_type* std::char_traits::find(const char_type*, std::size_t, const char_type&)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\char_traits.h:338:37: error: invalid conversion from ‘const char_type* {aka const wchar_t*}’ to ‘wchar_t*’ [-fpermissive]
    { return wmemchr(__s, __a, __n); }
    ^
    In file included from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\postypes.h:40:0,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\iosfwd:40,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ios:38,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ostream:38,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\iostream:39,
    from C:\Users\D\ClionProjects\helloworld\main.cpp:1:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:228:3: note: initializing argument 1 of ‘wchar_t* std::wmemchr(wchar_t*, wchar_t, std::size_t)’
    wmemchr(wchar_t* __p, wchar_t __c, size_t __n)
    ^
    In file included from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ios:40:0,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ostream:38,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\iostream:39,
    from C:\Users\D\ClionProjects\helloworld\main.cpp:1:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\char_traits.h: In static member function ‘static std::char_traits::char_type* std::char_traits::move(std::char_traits::char_type*, const char_type*, std::size_t)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\char_traits.h:342:40: error: ‘wmemmove’ was not declared in this scope
    { return wmemmove(__s1, __s2, __n); }
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\char_traits.h: In static member function ‘static std::char_traits::char_type* std::char_traits::copy(std::char_traits::char_type*, const char_type*, std::size_t)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\char_traits.h:346:39: error: ‘wmemcpy’ was not declared in this scope
    { return wmemcpy(__s1, __s2, __n); }
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\char_traits.h: In static member function ‘static std::char_traits::char_type* std::char_traits::assign(std::char_traits::char_type*, std::size_t, std::char_traits::char_type)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\char_traits.h:350:37: error: ‘wmemset’ was not declared in this scope
    { return wmemset(__s, __a, __n); }
    ^
    In file included from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ext\string_conversions.h:41:0,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2849,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\string:52,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\locale_classes.h:40,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\ios_base.h:41,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ios:42,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ostream:38,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\iostream:39,
    from C:\Users\D\ClionProjects\helloworld\main.cpp:1:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib: At global scope:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:201:11: error: ‘::lldiv_t’ has not been declared
    using ::lldiv_t;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:207:11: error: ‘::_Exit’ has not been declared
    using ::_Exit;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:211:11: error: ‘::llabs’ has not been declared
    using ::llabs;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:213:10: error: ‘lldiv_t’ does not name a type
    inline lldiv_t
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:217:11: error: ‘::lldiv’ has not been declared
    using ::lldiv;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:228:11: error: ‘::atoll’ has not been declared
    using ::atoll;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:229:11: error: ‘::strtoll’ has not been declared
    using ::strtoll;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:230:11: error: ‘::strtoull’ has not been declared
    using ::strtoull;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:232:11: error: ‘::strtof’ has not been declared
    using ::strtof;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:233:11: error: ‘::strtold’ has not been declared
    using ::strtold;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:241:22: error: ‘__gnu_cxx::lldiv_t’ has not been declared
    using ::__gnu_cxx::lldiv_t;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:243:22: error: ‘__gnu_cxx::_Exit’ has not been declared
    using ::__gnu_cxx::_Exit;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:245:22: error: ‘__gnu_cxx::llabs’ has not been declared
    using ::__gnu_cxx::llabs;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:246:22: error: ‘__gnu_cxx::div’ has not been declared
    using ::__gnu_cxx::div;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:247:22: error: ‘__gnu_cxx::lldiv’ has not been declared
    using ::__gnu_cxx::lldiv;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:249:22: error: ‘__gnu_cxx::atoll’ has not been declared
    using ::__gnu_cxx::atoll;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:250:22: error: ‘__gnu_cxx::strtof’ has not been declared
    using ::__gnu_cxx::strtof;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:251:22: error: ‘__gnu_cxx::strtoll’ has not been declared
    using ::__gnu_cxx::strtoll;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:252:22: error: ‘__gnu_cxx::strtoull’ has not been declared
    using ::__gnu_cxx::strtoull;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdlib:253:22: error: ‘__gnu_cxx::strtold’ has not been declared
    using ::__gnu_cxx::strtold;
    ^
    In file included from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ext\string_conversions.h:43:0,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2849,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\string:52,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\locale_classes.h:40,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\ios_base.h:41,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ios:42,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ostream:38,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\iostream:39,
    from C:\Users\D\ClionProjects\helloworld\main.cpp:1:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdio:175:11: error: ‘::snprintf’ has not been declared
    using ::snprintf;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdio:176:11: error: ‘::vfscanf’ has not been declared
    using ::vfscanf;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdio:177:11: error: ‘::vscanf’ has not been declared
    using ::vscanf;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdio:178:11: error: ‘::vsnprintf’ has not been declared
    using ::vsnprintf;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdio:179:11: error: ‘::vsscanf’ has not been declared
    using ::vsscanf;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdio:185:22: error: ‘__gnu_cxx::snprintf’ has not been declared
    using ::__gnu_cxx::snprintf;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdio:186:22: error: ‘__gnu_cxx::vfscanf’ has not been declared
    using ::__gnu_cxx::vfscanf;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdio:187:22: error: ‘__gnu_cxx::vscanf’ has not been declared
    using ::__gnu_cxx::vscanf;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdio:188:22: error: ‘__gnu_cxx::vsnprintf’ has not been declared
    using ::__gnu_cxx::vsnprintf;
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cstdio:189:22: error: ‘__gnu_cxx::vsscanf’ has not been declared
    using ::__gnu_cxx::vsscanf;
    ^
    In file included from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\string:52:0,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\locale_classes.h:40,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\ios_base.h:41,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ios:42,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ostream:38,
    from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\iostream:39,
    from C:\Users\D\ClionProjects\helloworld\main.cpp:1:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘long long int std::stoll(const string&, std::size_t*, int)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2873:31: error: ‘strtoll’ is not a member of ‘std’
    { return __gnu_cxx::__stoa(&std::strtoll, “stoll”, __str.c_str(),
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘long long unsigned int std::stoull(const string&, std::size_t*, int)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2878:31: error: ‘strtoull’ is not a member of ‘std’
    { return __gnu_cxx::__stoa(&std::strtoull, “stoull”, __str.c_str(),
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘float std::stof(const string&, std::size_t*)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2884:31: error: ‘strtof’ is not a member of ‘std’
    { return __gnu_cxx::__stoa(&std::strtof, “stof”, __str.c_str(), __idx); }
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘long double std::stold(const string&, std::size_t*)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2892:31: error: ‘strtold’ is not a member of ‘std’
    { return __gnu_cxx::__stoa(&std::strtold, “stold”, __str.c_str(), __idx); }
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘std::string std::to_string(int)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2899:45: error: ‘vsnprintf’ is not a member of ‘std’
    { return __gnu_cxx::__to_xstring(&std::vsnprintf, 4 * sizeof(int),
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘std::string std::to_string(unsigned int)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2904:45: error: ‘vsnprintf’ is not a member of ‘std’
    { return __gnu_cxx::__to_xstring(&std::vsnprintf,
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘std::string std::to_string(long int)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2910:45: error: ‘vsnprintf’ is not a member of ‘std’
    { return __gnu_cxx::__to_xstring(&std::vsnprintf, 4 * sizeof(long),
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘std::string std::to_string(long unsigned int)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2915:45: error: ‘vsnprintf’ is not a member of ‘std’
    { return __gnu_cxx::__to_xstring(&std::vsnprintf,
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘std::string std::to_string(long long int)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2921:45: error: ‘vsnprintf’ is not a member of ‘std’
    { return __gnu_cxx::__to_xstring(&std::vsnprintf,
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘std::string std::to_string(long long unsigned int)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2927:45: error: ‘vsnprintf’ is not a member of ‘std’
    { return __gnu_cxx::__to_xstring(&std::vsnprintf,
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘std::string std::to_string(float)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2936:45: error: ‘vsnprintf’ is not a member of ‘std’
    return __gnu_cxx::__to_xstring(&std::vsnprintf, __n,
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘std::string std::to_string(double)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2945:45: error: ‘vsnprintf’ is not a member of ‘std’
    return __gnu_cxx::__to_xstring(&std::vsnprintf, __n,
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘std::string std::to_string(long double)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2954:45: error: ‘vsnprintf’ is not a member of ‘std’
    return __gnu_cxx::__to_xstring(&std::vsnprintf, __n,
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘long long int std::stoll(const wstring&, std::size_t*, int)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2976:31: error: ‘wcstoll’ is not a member of ‘std’
    { return __gnu_cxx::__stoa(&std::wcstoll, “stoll”, __str.c_str(),
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘long long unsigned int std::stoull(const wstring&, std::size_t*, int)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2981:31: error: ‘wcstoull’ is not a member of ‘std’
    { return __gnu_cxx::__stoa(&std::wcstoull, “stoull”, __str.c_str(),
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘float std::stof(const wstring&, std::size_t*)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2987:31: error: ‘wcstof’ is not a member of ‘std’
    { return __gnu_cxx::__stoa(&std::wcstof, “stof”, __str.c_str(), __idx); }
    ^
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h: In function ‘long double std::stold(const wstring&, std::size_t*)’:
    c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\basic_string.h:2995:31: error: ‘wcstold’ is not a member of ‘std’
    { return __gnu_cxx::__stoa(&std::wcstold, “stold”, __str.c_str(), __idx); }
    ^
    mingw32-make.exe[3]: *** [CMakeFiles/HelloWorld.dir/main.cpp.obj] Error 1
    CMakeFiles\HelloWorld.dir\build.make:61: recipe for target ‘CMakeFiles/HelloWorld.dir/main.cpp.obj’ failed
    mingw32-make.exe[2]: *** [CMakeFiles/HelloWorld.dir/all] Error 2
    mingw32-make.exe[1]: *** [CMakeFiles/HelloWorld.dir/rule] Error 2
    CMakeFiles\Makefile2:66: recipe for target ‘CMakeFiles/HelloWorld.dir/all’ failed
    CMakeFiles\Makefile2:78: recipe for target ‘CMakeFiles/HelloWorld.dir/rule’ failed
    mingw32-make.exe: *** [HelloWorld] Error 2
    Makefile:117: recipe for target ‘HelloWorld’ failed

    • Anastasia Kazakova says:

      Looks like a mingw issue, try to replace -std=c++11 with -std=gnu++11 (http://stackoverflow.com/questions/38436542/mingw-cxxtest-bizarre-errors).

      • Danilo Borges says:

        Where we do this?

      • Connor McReynolds says:

        Very helpful, but is there a root CMakeList.txt file that I can change so that every time I make a new project I don’t have to go into that specific project’s CMakeList.txt file and change -std=c++11 to -std=gnu++11? I assume it’s pulling from some default CMakeList.txt file. It’s bothersome to have to change it for every new project I make….
        I ask you because you seem knowledgeable in this topic.

        • Anastasia Kazakova says:

          You mean some general CMake, not for the project?

          One way is to collect all your projects under one big CMake project and set this parameter there, then add new projects as subdirectories to this big one. But this most likely will cause some performance issues, since you’ll be working with all your projects at once in CLion.

          Another way is to create some Live Template adding necessary defaults to you CMakeLists.txt and call it there to generate proper settings.

          And the last option is to create File Template for CMakeLists.txt. However then you’ll need to create CMakeLists.txt manually using this template (so the project creation won’t use this template, at least until we implement – https://youtrack.jetbrains.com/issue/CPP-547).

  80. Timo Motors says:

    Could a ${UUID} variable be added as a Velocity Template variable providing a new UUID in every occurrence and also a way to refer back to the template created UUIDs by index;for example ${UUID_0}…${UUID_n}

    Two really nice additions would be:
    1. UML class diagrams and sequence diagrams of selected classes
    2. Design Pattern wizards

    • Anastasia Kazakova says:

      I’m really not sure about the use case and the behaviour you expect. Could I ask you to add it as a feature request to the tracker? We’ll think about it then.

  81. Timo Moto says:

    I would like to have a ${UUID_INCLUDE_GUARD} for example.

    UML:
    I think it would be nice to be able to visually depict a set of classes. It is always very helpful with code you have never worked with before or seeing for the first time.

    Design Pattern Templates:
    It is always nice to have the IDE/Editor generating code for you; and this includes having your IDE creating the set of classes for you to implement.

    I will add these as feature requests though. I really believe CLion is a super product with a lot of potential.

  82. Mitchell Urban says:

    whenever i start up clion i have
    std::cout << "Hello, World!" << std::endl;
    instead of having
    using namespace std;
    How can i set it to always have the namespace when i start clion

  83. Oleksii Shyshkov says:

    How to debug binaries that are built by external build system, for example makefile?
    I tried to start my binary through the clion and it was okay but I wasn’t able to see source code and I can’t use breakpoints.

  84. Rey says:

    How do I add the gsl library to clion project

  85. Jan says:

    what exact packages i need install with cygwin, gcc/g++, cmake, make and gdb 7.8 – i cant found that in select packages while i installing cygwin

  86. Daval Gregory says:

    Good day,

    I am trying to run a C program , but an error comes up saying that they cannot find the the file. I am talking about the #include and #include

    How will go about getting these preprocessor directives ?

    Thank you.

  87. Justus Schock says:

    While trying to install CLion by executing the clion.sh I get an error:

    Invalid System Path: Temp directory ‘/home/js/.CLion2016.2/system/tmp’ is inaccessible.
    If you have modified the ‘idea.system.path’ property please make sure it is correct,
    otherwise please re-install the IDE.

    Details: IOException: Cannot run program “/home/js/.CLion2016.2/system/tmp/idea_tmp_check.sh”: error=12

    Any Idea how to work around this or what it comes from?

  88. Lenfien says:

    I’m a Linux game-server developer, but I have a Mac which is not good to Linux.
    Could you please add a feature likes Netbeans’s remote development.
    I can edit, run, debug a remote project on remote Linux server.

    Please I need this so much ..

Leave a Reply

Your email address will not be published. Required fields are marked *