clion Questions
3
Solved
I have the following setup for C++ development:
OS X Yosemite
CLion 140.2310.6 (a cross-plattform C/C++-IDE by JetBrains using CMake as build system)
installed boost via brew install boost into /...
5
I ran into a problem while trying to use Clion.
I imported a project, yet all off the headers and .cpp files are greyed out. The error shown is as in the title: "Cannot load CMake project: CMake ex...
3
This is a rather easy matter in IntelliJ (and setting up PEP8 in PyCharm), but I have been googling and I couldn't find a configuration file (I presume in XML or whatever CLion uses) that I could u...
1
Solved
I'm trying to use CLion (latest version - 2019.3) to work on a source repository of mine, which already uses CMake (i.e. has a CMakeLists.txt). Now, the package has some options regarding which tar...
Sped asked 13/2, 2020 at 22:31
6
Solved
I have a .txt file in my project directory that I made and populated with data.
directory structure looks like:
/Users/asd/ClionProjects/ProjectWithTemplates/
main.cpp
cmake
twoday.txt
here is ...
1
I'm calling an existing Makefile for building, so in order to rebuild I'd need to call make clean first. I see that Run | Clean calls
cmake --build <dir> --target clean -- -j 4
Is there a w...
2
Solved
I need to be able to check how well my C++ code covered by unit test in critical places. I'm using Clion as IDE based on Cmake project structure (not sure if something else supported). Is there any...
Pungent asked 16/12, 2016 at 12:53
1
Solved
In the settings for CLion, CMake only appears in Build, Execution, Deployment under project specific settings. It does not exist under Default Settings. Is there a way I can specify a universal CMa...
Rostrum asked 7/4, 2017 at 0:0
2
Here is my code:
#include <iostream>
#include <cmath>
int main() {
std::cout << std::sqrt(4) << std::endl;
return 0;
}
MAC OS 10.15, CMake 3.15.4
As long as the heade...
1
Solved
clangd uses a lot of Memory (Up to 2.5Gig on my System). On my 8GIG System I frequently run into OOM situations.
Currently the only solution I have found is to kill clangd once it uses a lot of m...
1
I recently installed LLVM 7, and tried to include the necessary files to start a project using llvm library in CLion.
However, it complains that some files are not found.
My CMakeLists.txt file h...
2
How do I run rustfmt automatically when I save a file in IntelliJ or CLion?
Draggle asked 28/12, 2019 at 15:27
1
I am able to run my multithreaded C++ application in CLion debug. However, it is virtually useless with the call stack jumping between threads each time I step to the next instruction. After about ...
Eumenides asked 6/12, 2018 at 14:53
3
Solved
How do I exclude directories from being indexed in CLion?
I have several GB of data being indexed that are slowing everything down.
In PyCharm I can just right-click on the directory, but I don't...
Chape asked 15/4, 2015 at 14:11
1
Solved
Can you help me how to avoid the warning in this code ...
Warning: Clang-Tidy: Repeated branch in conditional chain
HubInterface *getFreeHub() {
HubInterface *freeHub = nullptr;
while (freeH...
Gotham asked 29/2, 2020 at 13:20
4
Solved
In xcode I type cmd-shift up/down to switch between .h and .c files. How do I do that in CLion? Or more usefully, what would that action be called in the keymap? I don't find the keymap names terri...
Habitforming asked 25/11, 2015 at 0:35
1
Solved
In CLion, how can I set the Visual Studio build architecture in the CMakeLists.txt file ?
According to cmake.org, one can set host=x64 in the CMAKE_GENERATOR_TOOLSET option.
The Visual Studio...
Dearr asked 12/2, 2020 at 13:54
2
Solved
When I start up the program, this is the output:
-------------------- HASHMAP MANAGEMENT BOOT MENU -------------------------
Would you like to:
(a) create a new hashmap
(b) load an existing one
(q...
2
Solved
When you create file in CLion, the following header is placed in the top of file:
//
// Created by <username> on 14.01.18.
//
Someone can remove this header by go to Settings → Editor → File...
Rathskeller asked 13/1, 2018 at 21:49
1
Solved
Is there a way to sort my #include statements in Clion? Additionally, can I do this automatically every time I save? I didn't manage to find any such functionality or plugin.
Tusker asked 19/3, 2017 at 1:16
4
When CLion creates a header file it adds include guard strings like this:
#ifndef PROJECTNAME_FILENAME_H
#define PROJECTNAME_FILENAME_H
/* ... code ... */
#endif //PROJECTNAME_FILENAME_H
But I...
Retinoscope asked 21/4, 2016 at 11:5
4
Solved
CLion: How can I add (or use) a prebuilt static library in my project?
Misdate asked 31/3, 2015 at 11:53
5
I'm using MacOS and trying to write c++ code in Clion but when I run the simple hello world code I get the error executable is not specified.
I'm new to Clion.
Cmakelist.txt
cmake_minimum_requir...
1
Solved
Summary
I am trying to compile ánd run/debug Qt code in Clion on Windows. Both CMake and the building process return no errors.
The following scenarios occur:
When I try to run I get Process finis...
Scabby asked 5/12, 2019 at 1:44
4
Solved
I updated to clion 2016.3 recently and noticed that I cannot choose between different configuration types anymore. With 2016.2 I had the choice between "Debug", "Release", "MinSizeRel" and "RelWith...
© 2022 - 2024 — McMap. All rights reserved.