Questions tagged [clion]
CLion is a cross-platform IDE for C and C++ development.
2,572
questions
-1
votes
1
answer
26
views
Why are some of my source files being hidden by CLion?
I'm using CLion 2022.1 to work on a (C++) project. In this project, I have files named src/foo/build.hpp and src/bar/build.hpp. These files are included from the main() translation unit, and are even ...
0
votes
1
answer
20
views
Clion, Autotools and JNI
I'm trying to setup a little JNI demo with Autotools using the Clion IDE.
The problem is: I don't know how to tell Autotools to include jni.h.
Also Clion does not resolve the #include <jni.h>.
...
0
votes
0
answers
42
views
Reading Chinese characters with scanf() and then prinf() results in garbled output
i find when i use in Clion scanf() to enter Chinese,then use prinf() to output it,it’s will be garbled.
#include"stdio.h"
int main(){
printf("你好\n");
char str[10];
...
0
votes
0
answers
15
views
What is the difference between target and executable in clion run/debug configurations?
When I press debug button, The log show as below:
====================[ Build | luajit | Debug ]==================================
/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake --build /...
0
votes
1
answer
14
views
Window Clion have no hint for standard libarary
When I use Clion to wirte c++ code, I want to check class and method in standard libaray like string , iostream or what else, and when I want to use "cout", I found that their is no hint(I ...
0
votes
0
answers
24
views
CMake errors in CLion when using for WSL
I am seeing errors in CLion for WSL2
CMake error at usr/share/cmake-3.21/Modules/CMakeDetermineSystem.cmake:188 (file): file failed to open for writing (Permission denied):
CMake Error: Could not ...
-1
votes
0
answers
14
views
Why is syntax highlighting missing in CLion?
In CLion, syntax highlighting spontaneously disappears, hints seem to remain, but the highlighting itself disappears. The backlight returns after 10 minutes or after restarting CLion. How can this be ...
0
votes
2
answers
60
views
run specific .rs file
quick introduction, I came from python I have studied it by myself, and now I'm trying to learn Rust. I find it a bit confusing.
I have a main.rs file and other .rs files in the src directory just to ...
0
votes
0
answers
12
views
Window10 Clion, The File was loaded in wrong encoding:UTF-8
When I use clion on windows 10, I open a C++11 project which is downloaded from Internet. I found that the wrong encoding looks like:
enter image description here
0
votes
0
answers
17
views
Connecting llvm with Clion
I was trying to connect with my Clion. First, using the guid I created a folder that contains cash:
$ mkdir mybuilddir
$ cd mybuilddir
$ cmake -DCMAKE_BUILD_TYPE=... path/to/llvm/source/root
$ cmake --...
0
votes
0
answers
47
views
Linker is unable to find LLVM libraries on Windows using CLion and CMake
I'm using latest version of CLion and MSYS Clang toolchain based on this this tutorial.
I've built LLVM myself using this.
My CMakeList.txt:
project(SimpleProject)
set(LLVM_DIR D://LLVM/build/lib/...
0
votes
0
answers
31
views
Debugging google test usinc CLion; breakpoints do not hit
I recently tried to incorporate google tests to our codebase. I can run tests but I cannot seem to figure out how to debug one!
This is my CMakeLists for a test:
add_executable(test_stringUtilities ...
0
votes
1
answer
62
views
How Can I Sign Commit With Gpg In Deepin Linux ( Zero To Hero )
I want to sign commit with gpg in linux , In windows i can sign , but in linux I have problem . I searched for this error in stackoverflow and github , but they cant solve my problem.
Gpg Error
error:...
-1
votes
0
answers
12
views
How to disable code completion with tab in CLion
I like to use Live Templates for CLion to type for loops.
I do for_TAB_i_TAB_BOUND_TAB
However, if instead of i if the variable name is c, then, when I press TAB after typing c the auto-complete ...
-2
votes
0
answers
20
views
ncurses.h in CLion 2022.1 on windows 10 [closed]
I recently wanted to start a project with the ncurses library but on both windows computers (8/10) it will give me the following errors:
CMake Error at
C:/Users/Home/AppData/Local/JetBrains/Toolbox/...
0
votes
1
answer
21
views
How to automatically load pretty-printers for gdb in CLion
I have written some GDB pretty-printers for my user-defined c++ classes, and they work as expected.
My IDE is CLion, and the problem is I have to manually run 'source PrettyPrinters.py' from within ...
0
votes
0
answers
30
views
Compiler don't see definitions of platform in Platformio project - using TinyUSB with ESP32-s2
I am an absolute noob about c++ and Platformio projects. I am trying to run an example of Adafruit TinyUSB library. What I understand is that compiler should see definitions in platform libs (...
2
votes
0
answers
29
views
how to load pretty printer for qt with lldb
according to Clion official manual, it's possible to have a readable qt type in debugger, but it's not working.
I followed the manual, downloaded lldb_formatters and added to .lldbinit under project ...
1
vote
1
answer
26
views
Breakpoints are not being hit - CLion Full Remote Debug - MakeFile - GDB
It doesn't matter what type of remote debug connection I tried.. Full Remote Host, Remote Debug, Remote GDB Server etc.
Actually remote device starts working when I clicked the debug button. I can run ...
0
votes
1
answer
16
views
Idf_tools.py syntax errors in Clion
Unfortunatelly, i got syntax errors in JetBrains CLion, when i load any ESP-IDF example/helloword projects. But, just in Clion. If i build the same project in terminal/console, there is no error at ...
0
votes
0
answers
34
views
why the clion rust tell serde::Serialize as unused import
Recently I was open the CLion Rust plugin unused import sniff Settings > Editor > Inspections > Rust > Lints > Unused Import, sometimes the rust show the wrong way, for example:
use ...
1
vote
0
answers
40
views
How to run makefile projects on clion
If I have a C++ project which uses a makefile to run the code (via the terminal), how can I make a simple to run/debug(!) project in clion? Up to this point I have been using VSCode, but it seems that ...
0
votes
0
answers
23
views
How to check the used External libraries in C++ in C-Lion
I was writing code for a small C++ project and I used many external libraries and now I have a problem with the project due to some libraries not working. Is there any way to see which external ...
0
votes
0
answers
35
views
how to set up properly glfw and glad libraries in clion macos
Hello glad glfw expert i have zero knowledge in using these libraries.. but this is what i got..
: && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ ...
1
vote
0
answers
26
views
How can I enable auto formatting in CLion?
I installed CLion a day ago and I want to format the code automatically after I type semicolon like in Visual Studio (I am coding in C++). I tried the code style menu but it works only if I format it ...
0
votes
2
answers
108
views
Missing libgcc_s_seh-1.dll starting the .exe on Windows
Intro
I have a CMake-based C++ project. Until now I build and ran the project via CLion. Everything worked fine until I tried to run the .exe-file directly (not via CLion).
Problem
When I navigate to ...
0
votes
0
answers
48
views
Can't get CLion to actually use GCC compiler instead of Clang?
I've tried following all the help to change my compiler to use GCC instead of Clang (on macOS) as I would like to try to use __gnu_pbds::priority_queue instead of the STL version, and it still appears ...
0
votes
0
answers
15
views
How do I run my Clion project after renaming the folder they were in?
I created a c project (multiple .c & .h files). After it was running I renamed the folder they were in and now Clion won't allow me to run it.
The only solution I could find was to create a new ...
-1
votes
0
answers
32
views
Use GLEW in CMake in Windows with MSVC
I know there already are a lot of questions concerning this issue. However I was not able to fix the find_package for GLEW in my CMake setup.
My Setup:
I use CLion on Windows 11 using MSVC compiler ...
-3
votes
0
answers
23
views
Clion is configured with FFMPEG under MAC. Missing LC_ID_DYLIB load command file
cmake_minimum_required(VERSION 3.21)
project(DemoExample)
set(CMAKE_CXX_STANDARD 14)
include_directories(/Users/windy/devlop/ffmpeg/mac_ffmpeg_lib/include)
link_directories(/Users/windy/devlop/...
0
votes
0
answers
26
views
sdl2_gfx does not work on clion with cmake [duplicate]
I have written the sdl2 game in pure c on m1 mac using vscode+homebrew pkg manager with a makefile and it works successfully. I used homebrew to install the pkgs of sdl2(like sdl2_image,sdl2_gfx) and ...
0
votes
0
answers
33
views
M1 mac using clion with cmake and homebrew to use sdl2_gfx error [duplicate]
I have written sdl2 game in pure c on m1 mac using vscode+homebrew pkg manager with makefile and it works successfully. I used hombrew to install the pkgs of sdl2(like sdl2_image,sdl2_gfx) and ...
0
votes
0
answers
12
views
How can I copy a external dll in code directory to output dir with cmake in clion auto? [duplicate]
When I using a external dll , I have to set environment to this dll or manually copy it to build output. Is there any method finish it auto?
0
votes
1
answer
26
views
Strange things when running python code in Clion
When running python code in Clion, the output in 'Run' windows has extra content. For example:
print("hello")
print("hello")
print("hello")
And the output is like this:
...
0
votes
0
answers
44
views
Undefined symbols for architecture arm64 in Clion Mac ARM64
Im new to c++ and need help.
I generated an Clion c++11 project and got this example code: (project name is untitled, compiler for c++ = clang)
#include <iostream>
int main() {
std::cout &...
0
votes
0
answers
34
views
make `emscripten` available via cmake
I'm trying to use , but it is not available, so I'm using FetchContent on cmake to make it available, It worked for GSL and Googletest. But the emscripten simple doesn't build, and the emscripten-...
0
votes
1
answer
74
views
C++: CLion error: the clang compiler does not support '-march=core2
I have a problem with CLion compilation after updating CL tools - it must have overwritten some configurations in gcc/clang, but can't see how to change them.
When trying to compile with CLion or ...
1
vote
0
answers
53
views
How to fix "<ext/pb_ds/assoc_container.hpp> not found"?
I am trying to run a code taken from here. I use CLion to run the code.
There is a compile error with:
#include <ext/pb_ds/assoc_container.hpp>
as the file is not found.
Do I need to anything to ...
0
votes
0
answers
59
views
C++ Clion Debugger
I encountered with an error C:/Users/batuh/......./Term_Project.exe: No such file or directory however as you can see in the screenshot directory correct and also there is a file with a name "...
1
vote
1
answer
341
views
CLIon 2022.1: In template: call to '__builtin_operator_delete' selects non-usual deallocation function in
why am I getting such a static analyzer error, there are no errors when compiling
on version 2021.1 there was no such error
clangd v15.0.0
flags: -Wno-unused-variable,-Wno-infinite-recursion,-Werror=...
0
votes
0
answers
37
views
CLion no syntax highlighting and hints for CMakeLists
My CMakeLists.txt is correctly loaded for the project, and the project can be executed correctly. However, when I try to write in CMakeLists.txt, there's no syntax highlighting, hints and reload hint ...
0
votes
1
answer
22
views
OpenCL syntax highlighting in CLion
Does anyone have a solution for syntax highlighting of OpenCL code for CLion?
I am placing the OpenCL source code in a file with the extension .cl and would like to have syntax highlighting for such ...
0
votes
0
answers
17
views
How to make CLion work with subdirectories
I'm currently a student and need to learn C. I'm working on a Debian Virtual Machine using CLion.
To manage my assignments better, I created a github repository to synchronize and store all my C ...
0
votes
0
answers
36
views
Can't bind OpenCV to my project via CMake in CLion
For an exercise at school I need to work with OpenCV, but I can't figure out how I can link this in CLion.
I have chosen to put the entire OpenCV library in my project so that I can easily zip it and ...
1
vote
0
answers
90
views
Is there any method to make visual studio auto complete std::?
Just like clion. For example, I want to use std::vector<>. In clion, I just need to input vec and Enter, Clion will autocomplete to std::vector<>. I think it is very convenient. Is there ...
0
votes
1
answer
83
views
Copy MinGW w64 runtime dlls to the target directory under Windows using CMake
I am trying to use CLion + MinGW to develop an application on Windows.
The program can be compiled and run normally, but when I enter the cmake-build-debug folder to run the program alone, the program ...
0
votes
0
answers
23
views
Unable to successfully link .dll and .lib using CMake (assimp) [duplicate]
I'm trying to link my built assimp library to an empty test project but I'm unable to for whatever reason. I have very little knowledge of CMake so I'm just completely confused.
I build the Assimp ...
0
votes
0
answers
59
views
Debugger executable not found error in CLion
I'm new to using CLion and when I try to debug I get an error saying
Debugger executable not found: C:\Program Files\JetBrains\CLion 2021.3.3\bin\gdb\win\bin\gdb.exe Configure
But when I click on ...
0
votes
0
answers
61
views
QT6 ui file not found
I have a QT Application, but as I undestand, the ui file is not found.
All of the listed files are located in the same directory, the projects root folder.
I'm using Clion as IDE and have created the ...
0
votes
2
answers
45
views
QPushButton signal
I'm trying to get a QPushButton's action method running doing the following.
My login.h:
//
// Created by simon on 28.04.22.
//
#ifndef RESTCLIENT_LOGIN_H
#define RESTCLIENT_LOGIN_H
#include <...