Questions tagged [clion]

CLion is a cross-platform IDE for C and C++ development.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

CMake error: log4cppD not found in package?

I got an error in CLion caused by CMake. It says that Cmake cannot find the log4cppD package. Here is a piece of the conanfile.py def package_info(self): self.cpp_info.set_property("...
AgonLat's user avatar
  • 11
0 votes
0 answers
18 views

Dear ImGui linker error GLFW undefined symbols [duplicate]

I am trying to run my main.cpp file in CLion on Macos m1, where I have the ImGui repository cloned to. I opened my main.cpp file inside the ImGui-master. Wrote my application in main.cpp and built a ...
Brett_mylek11's user avatar
0 votes
0 answers
13 views

Linking libmodbus in CMake project under Windows (CLion IDE)

I use CLion IDE with MinGW toolchain for my project. I need to link libmodbus in CMake project in file CMakeLists.txt. How can I do this? I have installed libmodbus using Vcpkg GUI in CLion IDE on ...
Vladimir Privalov's user avatar
0 votes
0 answers
21 views

Problem with linking Boost in CLion on Windows

I need to use boost asio under CLion IDE. When I compile my project I get error cmd.exe /C "cd . && C:\MinGW\bin\g++.exe -g CMakeFiles/HelloWorld.dir/main.cpp.obj -o HelloWorld.exe -Wl,--...
Vladimir Privalov's user avatar
0 votes
0 answers
20 views

Curly bracket doesn't support auto indent anymore in CLion

I have the behavior in my JetBrains IDE (specifically CLion) that when I typed something like if () { and pressed Enter, it generate the following: if () { // cursor here} But it used to be if () { ...
Pikarabbit's user avatar
0 votes
0 answers
29 views

Issue with IDE's when working with header files in C++ [duplicate]

I set up 3 C++ files (one header, one main file and a final source file) and try to link them correctly to run, however it seems that I keep getting the same output error in different IDE's. Can ...
1of1J's user avatar
  • 11
1 vote
0 answers
35 views

libusb_open() failed with LIBUSB_ERROR_ACCESS when using openocd with Clion and ESP32

I am trying to debug my code via jtag (esp prog) and openocd but every time it fails. I configured openocd environment in clion. enter image description here but after pressing debug this shows up: C:\...
NIkita's user avatar
  • 11
-2 votes
1 answer
57 views

Unable to Output Chinese Characters in CLion Using MSYS2 MinGW64 Despite UTF-8 Settings

I am developing a C++ application in CLion using MSYS2's MinGW64 compiler. My project involves outputting Chinese characters, but despite setting everything to UTF-8 (Global/File/Terminal encodings in ...
ForExynos's user avatar
-1 votes
0 answers
38 views

Unable to specify the C++ compiler to a homebrew-installed gcc-13 in Clion on M1 Mac

I want to manually set Clion's compiler to be a real gcc/g++, but CMake reports that the compiler I specified is not able to compile a simple test program. I've searched on Stackoverflow but no post ...
pseudo allodoxaphobia's user avatar
-1 votes
0 answers
38 views

Why not working code analysis on .hpp file at Clion IDE?

As shown in the image below, Clion IDE's code analysis function does not work properly and the code is displayed in white.[Bug file (.hpp)] But, static code inspection for other .cpp or .h files ...
novice151's user avatar
-1 votes
0 answers
41 views

I included the spdlog header file in CLion, and the code runs successfully, but CLion keeps reporting errors

I am using WSL as my environment on a Windows 11 system and have directly installed the libspdlog-dev package in the default environment. I have successfully located the spdlog package in CLion's ...
sky's user avatar
  • 1
1 vote
0 answers
53 views

CLion Nova code formatting: new scope on the same line as previous scope

When i format c++ code in clion it puts new scope { at the same line as the previous } of an if statement for example. what i want: if (...) { ... } { // Some Code } what it does: if (...) { ... } { ...
Erik15's user avatar
  • 11
0 votes
1 answer
32 views

The run button in CLion is invisible

I don't know how else to describe it. It is there, it exists (as I can click on it to run my project) but its invisible. I googled it, but all of the posts are about it being "greyed out" I ...
Advik's user avatar
  • 30
0 votes
1 answer
84 views

Clion, CMake undefined reference to functions from libraries

I am trying to use assimp on windows using CLion, but when I try to use the functions provided, I am met with undefined reference to 'Assimp::Importer::ReadFile(char const*, unsigned int)' error. My ...
Wizzy's user avatar
  • 1
-2 votes
0 answers
39 views

terminate called after throwing an instance of 'std::logic_error' in CLion

I've got an issue like this terminate called after throwing an instance of 'std::logic_error' what(): basic_string: construction from null is not valid I have just created a projet with multiclasses ...
Mehmet Ali Toy's user avatar
0 votes
0 answers
24 views

Handeling pthread Macro Error at Build Time?

I have been encountering same error for a large period of time now. C++ example below is simplified, as my first encounter with this error was while I was building a newly downloaded library. I don't ...
Gil's user avatar
  • 137
0 votes
0 answers
44 views

Including boost in CMakeLists.txt (CLion)

I am trying to include boost in my CLion project in CMakeLists.txt and I get an error in linking boost library. My CMakeLists.txt: cmake_minimum_required(VERSION 3.25) project(echo_ap) set(...
Denis Dub-v's user avatar
0 votes
1 answer
33 views

My libraries aren't going to the specified directory in cmake

I'm creating a library, and it works fine, but I've specified the libraries to be created on the directory "${CMAKE_CURRENT_SOURCE_DIR}/Build/MSVC/bin" but is being created on the build ...
Nico Cano's user avatar
0 votes
1 answer
41 views

How do I link libraries in Clion using CMake?

I am trying to display graphics in C and for that I want to link the SDL libraries, but this is the first time I've done something like this and everything I've found has been unhelpful. What I ...
CrySa's user avatar
  • 1
0 votes
0 answers
28 views

Small CLion project with C++ and SDL2 crashing with exit code 468

So I've been poking around CLion lately and wanted to set up an example project since I do game dev in my free time, but once I managed to have the CMake file work with SDL2, I ended up hitting the ...
fortwoone's user avatar
-2 votes
0 answers
84 views

Why isn't this C++ code printing to cout?

I am currently following along with the 5th edition of C++ Primer by Lippman. I have copied the following code from the book's companion site: #include <iostream> #include "Sales_item.h&...
EE18's user avatar
  • 105
0 votes
0 answers
49 views

clang-tidy by CLion and standalone yield different results

I have clang-tidy enabled in CLion, using a certain version. I want to add clang-tidy to our CI (continuous integration) flow that runs as a standalone script. However, although clang-tidy version is ...
Aaron's user avatar
  • 1
0 votes
0 answers
9 views

JetBrain CLion - what is add to target?

Start using CLion. Trying to create a example toy code in a newly created blank project by adding a new cpp file. It shows the window. Just click OK and gets the warning. Which documents under CLion ...
mon's user avatar
  • 19.7k
0 votes
0 answers
30 views

Why Clion Debug tool can not find my file even my file in cmake-build -debug folder?

Clion debug tool does not working when I try to reach a text file. I put it in c-make-build-debug folder but it still can not find my file. I need reach a text file for my c++ project in Clion. I ...
Nurşah's user avatar
0 votes
1 answer
56 views

Qt6 functions are undefined

I installed Qt6 on Ubuntu using sudo apt install qt6-base-dev command. I created Clion Qt6 project and wrote simple window code: #include <QCoreApplication> #include <QDebug> #include <...
Black Hat's user avatar
0 votes
1 answer
112 views

How can to change cursor for MessageBox()? WinAPI, C++ (23)

I use: MessageBox(nullptr, "Hello, World!", "Test", MB_OK); But I need to use SetCursor function (my abstract task). For example: SetCursor(LoadCursor(nullptr, IDC_NO)); Is it ...
RustamV's user avatar
  • 11
3 votes
1 answer
30 views

How do I pass the output of a program to my build when running from CLION?

I want to launch a program like this: tar -xOzf ../data/schifo.tar.gz schifo.tsv | ./myexe but directly from CLion, how can I do that? I'd rather not decompress the whole file btw In the "Edit ...
desperate's user avatar
0 votes
0 answers
28 views

How could I add an ico to my exe with CLion?

I want to add an ico to the exe when it's built. You know, the default icon is really ugly and boring. I just started using CLion, and I searched the Internet for a long time but couldn't find the ...
Leon Jason's user avatar
0 votes
0 answers
25 views

How to successfully introduce OpenCV when compiling a C project with Clion

I configured OpenCV through Cmake in Clion, but "error core.hpp header must be compiled as C++" occurred when building and compiling. This problem is in vs2022. I know how to deal with it. ...
Jiang's user avatar
  • 1
0 votes
1 answer
17 views

why my CLion on macos debug openjdk source the breakpoints is not step into source

I have import the openjdk source into CLion when i modify the source and then run the custom build application it works run application debug application but if i debug the source it does not work ...
salklee's user avatar
0 votes
1 answer
81 views

There was an error compiling the header file [closed]

1.Real result In the CLion compiler, when I tried to compile, I got the following error: The following are some warnings from the errors. f:/my_app/gcc-arm/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/...
Jamth's user avatar
  • 31
0 votes
1 answer
92 views

"Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)" In CLion

While trying to solve a coding problem today, I got tired of OnlineGDB not being able to support large input files, so I decided to pull out CLion and use that instead. However the result that I get ...
zrli's user avatar
  • 67
0 votes
1 answer
44 views

How do i turn off automatic index view in Clion for arrays?

I want to turn off the view for the index and look at the array normally thanks! I've checked my plug-ins, build and run configurations (data view), and checked the debugger itself. I'm not sure what ...
nebula79283's user avatar
0 votes
0 answers
11 views

Unwanted subsequent pop-up when running/debugging in CLion

When I want to debug or just run my code from within CLion using the arrow or bug from the menu, next to the configuration selection: Then - since a little while - despite the already selected target ...
AudioDroid's user avatar
  • 2,305
1 vote
0 answers
35 views

Undefined Reference to 'omp_get_wtime'

I am trying to run a C program on Clion using OpenMP. All my earlier programs ran but for some reason this one isnt. I have included the following in my main.c file: #include "qdbmp.h" #...
Om Mistry's user avatar
1 vote
0 answers
56 views

C++ Namespace - Function Declaration in Header File and Definition in Source File [duplicate]

I'm new to C++ and I encountered the following problem. I have a project whose file structure is like this: [untitled] -> main.cpp -> functions.h -> definition.cpp The functions.h file ...
user1186132's user avatar
1 vote
1 answer
32 views

Clion-Function doesn't return the correct value

Im a total beginner to C and decided to use Clion for an ide. Which didn't end up in a good way since when i tried my very first code it didn't return what it was supposed to or maybe there is a ...
Kosei's user avatar
  • 11
0 votes
0 answers
25 views

CLion - No option to create Cmakelists.txt for a non-Cmake project

How do I generate Cmakelists.txt for a non-Cmake project in CLion? I have no idea why the documentation and other answers say that there's supposed to be "Tools -> Cmake" in the menu bar ...
Haseeb Ali's user avatar
0 votes
0 answers
24 views

Undefined References for VCPKG Dear ImGUI in Clion [duplicate]

I've only started using Clion as my main environment for CPP development and I was wondering if I could get Dear ImGUI in it. Turns out I can install it through VCPKG, but it only includes the .h ...
Volv1t3's user avatar
-1 votes
1 answer
70 views

Console closes before i see my last line of code

enter image description here This is my Program. When i run it on the internal console in CLion it works fine but when i build it and open the .exe file I get the first line and after i enter the ...
XayTag's user avatar
  • 11
0 votes
0 answers
36 views

Running different files in the same project on CLion

I'm currently doing some exercises to learn C on CLion but i have noticed that if i create multiple files, when i run the program i can't select from which file so the compiler tries with the whole ...
Karamit's user avatar
0 votes
0 answers
26 views

Code generation unavailable in Clion project

I have a project in Clion, with some sources. When I create a class, and insert, say a member variable, I am supposed to be able to let clion generate, among others setters/getters. Instead, right-...
francesco's user avatar
  • 7,304
-1 votes
1 answer
150 views

Clion cannot recognize header file or any keywords

I was using Clion perfectly yesterday, but today, I opened Clion again and Clion cannot recognize any header files and keywords. It just says the header files don't exist and the keywords are "...
zxcvbnm's user avatar
  • 39
0 votes
0 answers
19 views

Why can I not run properly the starting project executable, created with cmake an mingw in CLion, from the command line?

This is a request for an explanation, rather than a request for the solution. I do have a solution already, which is adding the following line to CMakeLists.txt: set(CMAKE_CXX_FLAGS "${...
Surge's user avatar
  • 284
0 votes
0 answers
31 views

How to use rustc crates in IntelliJ

I'm trying to use rustc crates (e.g. rustc_lint) in CLion with the Rust plugin, but to no avail. I got it working in VSCode rust-analyzer, but I prefer CLion. The issue with CLion is that it simply ...
tigerros's user avatar
-2 votes
1 answer
57 views

Build CLion CMake with the GoogleTest project from the terminal

I can build a CMake project with GoogleTest in CLion. But I cannot build it from terminal. I get a bunch of errors when building GoogleTest as a dependency. I also tried to build project without ...
Lesnov's user avatar
  • 13
3 votes
0 answers
89 views

Is it possible to format case statement break keywords outside the braces with no indentation?

This is a requirement from my company's coding standards: The selection statement itself should be at the current indent level. Each option clause is then indented one level. The code associated with ...
Rocketman Dan's user avatar
1 vote
0 answers
49 views

Undefined symbols, while building C project with homebrew library

I try to run a simple project to check if the library (libnfc) are correctly loaded, and apparently the project find the lib and all the code in it but while building it does find more lib. PC ...
Maxigame99's user avatar
-1 votes
2 answers
67 views

Why is the output in clion displaying smiley faces instead of characters?

I was expecting it to result the same thing back but for some reason its just not and displaying smiley faces. Running a normal getchar and putchar works fine and it gives out the expected output. ...
AryNsachan's user avatar
1 vote
0 answers
30 views

Could NOT find CURL (missing: CURL_INCLUDE_DIR) (found suitable version "7.74.0", minimum required is "7.74.0")

I'm using CLion to do cross compilation (to armhf) on virtual machine (Linux Debian). Packages were added through CC_GetFile: Downloading 'liba52-0.7.4_0.7.4-20_armhf.deb' to '/home/debian/cc_armhf/...
MBR's user avatar
  • 11

1
2 3 4 5
57