Category : clion

#include <iostream> #include <string> #include <algorithm> #include <vector> #include <list> #include <stdio.h> #include <stdint.h> using namespace std; int main() { list<string> rucksack; string input; cout << "which items would you like to put in your rucksack"; getline(cin, input); vector<string> keywords{"bow", "sword", "scales", "cloak"}; for(const auto& keyword : keywords) { auto pos = input.find(keyword); cout << ..

Read more

I wanto add glfw dependency by cmake in CLion but i get weird error, this is the CMakeLists.txt cmake_minimum_required(VERSION 3.17) project(hello_gl) set(CMAKE_CXX_STANDARD 14) find_package(glfw3 3.3 REQUIRED) target_link_libraries(hello_gl glfw) add_executable(hello_gl main.cpp) CMake Error at CMakeLists.txt:8 (target_link_libraries): Cannot specify link libraries for target "hello_gl" which is not built by this project. This is the error I get? ..

Read more

I am trying to include boost library to clion using the following CMakeLists.txt cmake_minimum_required(VERSION 3.16) project(Prototype3Relational) set(CMAKE_CXX_STANDARD 20) set(Boost_INCLUDE_DIR "F:Essentialboost_1_74_0") find_package(Boost) include_directories(${Boost_INCLUDE_DIR}) add_executable(Prototype3Relational main.cpp atomic_logic.h logic_engine.h F.h) but it seems to take forever to index. Most of which are irrelevant like the docs,examples, a few HTML files here and there and a lot . It ..

Read more

I am trying to use windows boost 1.74.0 library in clion and all i get is errors. Maybe i am missing something in my CMakeLists.txt which looks as follows. cmake_minimum_required(VERSION 3.16) project(Prototype3Relational) set(CMAKE_CXX_STANDARD 20) set(Boost_INCLUDE_DIR "F:Essentialboost_1_74_0") find_package(Boost COMPONENTS lambda REQUIRED) include_directories(${Boost_INCLUDE_DIR}) add_executable(Prototype3Relational main.cpp atomic_logic.h logic_engine.h F.h) Every time i reload cmakeproject i get an error ..

Read more

please tell me what the problem may be, I wrote a program in C++ under Linux, but there was a problem with the execl () function, it gives the following error "No such file or directory", please tell me what I’m doing wrong? The code of the main program(the main file) where excel is called(the ..

Read more