Questions tagged [c++]

C++ is a general-purpose programming language.

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

Alternative for mouseclick function in Linux?

So i got some problem with my window and i decide move to linux. I'm working with some c++ code that required windows.h, so i decide to change some of my code, so it can run in linux. one of my code ...
0
votes
0answers
18 views

Cmake build from source gives problems on make (probably c++14 standard not used)

I just updated my Cmake to the version 3.19 (previously 3.10) from sources. For this I now have two cmake versions the one from before in /usr/bin/cmake and the new one in /usr/local/bin/cmake which ...
0
votes
0answers
52 views

Shell script not running properly from another shell script

I have bunch of shell script and need to run one by one from a single shell script and this single shell script is running from a C++ code. I just explain you the process .. I run my C++ application ...
0
votes
0answers
33 views

How to fix “ There was an error creating the child process for this terminal failed to execute the child process ”/tmp/<filename> (permission denied)

I was trying to run a c++ program from atom text editor.I have set gnome terminal for the gpp compiler . While I try to compile the program it shows the error " There was an error creating the ...
0
votes
1answer
39 views

Why is 'Makefile' not running? [closed]

I am trying to run a systemc program through bash using the following Makefile all: g++ -I. -I $(SYSTEMC_HOME)/include -L. -L$(SYSTEMC_HOME)/lib-linux64 -W$ stimulus.cpp display.cpp ...
0
votes
1answer
25 views

Header file path

I have installed libxml2 on my machine: sudo aptitude install libxml2 But I can't find header files. Where header files are located?
0
votes
0answers
44 views

ImportError: No module named 'pandas(import pandas as pd) in Embeding Python in C++

I am finding how can I embed my Python Program which includes Pandas and sklearn libraries in C++. i tried a simple program using PyBind11 which gives correct input but now i am trying to embed Python ...
3
votes
1answer
81 views

How to install github.com/ioi/isolate on Ubuntu

I recently tried to make a C++ judge and heard about a tool called "Isolate" (available here): Run program within a sandbox, so that it cannot communicate with the outside world and its ...
0
votes
1answer
37 views

Where did QT install to?

I am trying to set up a qt project in CLION. I installed qt using these commands sudo apt-get install qtcreator and sudo apt-get install qtdeclarative5-dev When you create a qt application in clion ...
0
votes
1answer
28 views

How to test memory advance pattern?

I am new learner in Ubuntu. I want know about how to execute memory advance pattern test? Is there any ubuntu command or c++ program?
0
votes
1answer
35 views

Any Windows Manager Controler libraries for Python/C/C++?

I was wondering if there are any libraries for Python, C or C++ that help you interface with your window manager/x-windows? I am currently using os.subprocess and feeding it wmctrl bash commands and ...
1
vote
1answer
68 views

Installing C++ packages on Ubuntu

I am currently running Ubuntu 20.04.2 LTS. I am trying to install the C++ package Linbox (https://linalg.org/). I am trying to install it on ubuntu using apt-get install, so I am doing the following: ...
0
votes
0answers
14 views

Signal when PulseAudio load/unload modules

There is a way to know if PulseAudio has loaded/unloaded a module? Like a signal from PulseAudio? I know how to query for modules: pactl list sinks but I need some sort of IPC signal mechanism from ...
0
votes
0answers
78 views

Inconsistency detected by ld.so: elf_get_dynamic_info: Assertion `info[DT_RUNPATH] == NULL' failed! trying to run qemu using glibc-2.33

For educational pourpoise I would like to run the latest version of qemu using glibc-2.33,instead of glibc installed as default on the 18.04. The final goal is to virtualize windows 10 arm64 on the ...
1
vote
2answers
96 views

How to develop for Ubuntu [closed]

I know how to program in C/C++, JavaScript and PHP and I want to develop some GUI tools for Ubuntu. How shall I start? In other similar posts the OP suggests Python and he doesn't refer explicitly GUI....
0
votes
1answer
56 views

Wifi not working on Ubuntu 20.04 and taking long to boot up in Legion

I recently installed 20.04 on my Legion laptop As the title suggests, the Wireless connection isn't working shows Wifi Adaptor not found in settings and taking lot of time to bootup also I have tried ...
-2
votes
1answer
33 views

Error while installing graphics.h library on ubuntu 20.10

please answer my question as i can't installing graphics.h library in ubuntu 20.10. It shwoing me erros as libs0-dev not found. showing while installing packages
0
votes
0answers
21 views

Permission of launching C++ application in terminal with ./ or with the pathfile

I'm a bit confused. I launch my application in gnome-terminal in with: cd /home/username/document/project/build/ ./NameOfApplication Everything works good, but when I launch it with: /home/username/...
0
votes
0answers
15 views

How to Run SystemC on Eclipse

I recently install Eclipse from USC. I am using Ubuntu-18LTS. I have installed systemc-2.3.3. But I am stuck at running systemc program in eclipse. Could anybody please give steps for running systemc ...
1
vote
2answers
78 views

Autostart C++ compiled application upon boot

I made a C++ application. The app just gives me terminal output (just to be sure that my script has launched properly). There is no GUI. I want my app to run when my computer is booted. My script ...
0
votes
0answers
31 views

configure: error: Cannot enable MemorySanitizer ubuntu18.04

make powerdns in ubuntu18.04 server by this option ./configure --enable-msan and I install 100+ packages but it could resolve error checking whether to enable MemorySanitizer... yes checking whether ...
1
vote
0answers
97 views

Depends: libgl1 (= 1.3.1-1) but 1.3.1-1ubuntu0.20.04.1 is installed

Trying to compile a simple c++ assignment, and it informed me that GL/glu.h doesn't exist. Searching around led me to believe that I need at least 3 or 4 of these packages: libgl-dev , libgl1, libgl1-...
0
votes
0answers
13 views

How to make arm compiler use system libc++ instead of snap?

I am trying to compile firmware for an ARM device using arm-none-eabi-g++. However the command exits with an error saying that /snap/core/current/usr/lib/x86_64-linux-gnu/libstdc++.so.6 doesn't ...
1
vote
0answers
31 views

How to run binary at Linux startup with sound?

I have a C++ program where I use the SDL2_Mixer module (which is based on Pulsesink, I think) to output audio. I want to run it on startup, but it does not want to work out very well. I set my default ...
1
vote
1answer
222 views

C++ not able to install 32-bit gcc-9/g++-9-multilib on Ubuntu 18.04

I have multiple version of c++ compilers installed on my laptop. I am trying to build my code using g++-9.3 with a 32-bit compiler. So I tried to install the multilib by using sudo apt-get install gcc-...
1
vote
1answer
132 views

CMake for UHD Library can't find Boost

I'm trying to build the UHD library (https://github.com/EttusResearch/uhd.git) on Ubuntu 20.04 and when I run cmake .. from host/build, I get this message: -- Checking for Boost version 1.58 or ...
0
votes
1answer
77 views

Which Ubuntu Boost Package includes the UUID library?

I am building a C++ program using cmake on Ubuntu and which uses the Boost UUID library. I could install the entire Boost suite using either sudo apt install libboost-dev or sudo apt install ...
0
votes
0answers
45 views

OpenCv for c++ on ubuntu is not getting installed

Assalamualaikum I followed this article from top to bottom But when I executed - pkg-config --modversion opencv an error message showed up -'Package opencv4 was not found in the pkg-config search ...
0
votes
0answers
88 views

C++ Api to disable keyboard and mouse inut

I need an C++ API for Linux to disable keyboard and mouse input, and enable it once ctrl + alt + del is pressed( The shortcuts are not important). In Windows there is alternative BlockInput function ...
0
votes
0answers
133 views

ERROR src/leveldb/libmemenv.a: error adding symbols: Archive has no index;

I try to compile window wallet of https://github.com/coppercoinet/Coppercoin this error happen /root/megacoin/src/leveldb/libmemenv.a: error adding symbols: Archive has no index; run ranlib to add one ...
0
votes
0answers
94 views

Issue install armadillo, is it cmake issue with anaconda3

While calling cmake . for installing armadillo I get warnings in addition to unwanted ARMA_HDF5_INCLUDE_DIR = /home/coyote/anaconda3/include (why does it always choose anaconda for this?). Warnings ...
-1
votes
2answers
47 views

Millions of folders lead to unresponsive USB

I ended up doing an experiment to see how many folders I could fit on a 16GB USB (for fun) So I got a raspberry pi, and ran the program to generate new folders until it crashed. When I plug the drive ...
0
votes
0answers
46 views

vowpal_wabbit library does not build on ubuntu 20.04

I am trying to build vowpal_wabbit library version 8.1.1 on Ubuntu 20.04 and get the following error while building the Java JNI lib. mkdir -p target; g++ -shared -o target/vw_jni.lib src/main/c++/...
0
votes
0answers
16 views

How do I fix c++ code in text editor of my ubuntu?

How do I fix the £ and @ part of my c++ code in my text editor. Please help.enter image description here
0
votes
0answers
1k views

How to run VsCode's Code Runner in an external terminal?

I would like to launch the c++ app using Code Runner of Visual Studio Code in an External Terminal. There was a Similar Question1 Similar Question1 on the internet but it focused on Vscode in ...
2
votes
0answers
56 views

Compiling hello world in Ubuntu fails

I have a hello world c++ file and When I compile I get some bogus error. It seems something is off with c++ setup. Here is what I get: root@localhost:/home/student/tmp/gios/pr4/part1# g++ -o hello ...
0
votes
0answers
40 views

How to upgrade C++ version? [duplicate]

I'm unfamiliar with C++, but something that I am trying to build requires the C++ version to be C++ 20 (it uses some features that only cpp 20 has apparently). I believe my current version is lower ...
1
vote
1answer
55 views

Getting error while trying to run ./configure --prefix=/tools so to install systemc

I am trying to install systemc-2.3.3 on ubuntu 18.04LTS. Previously I tried with 20LTS that didn't work for some reason.I am following these instructions :Installation of SystemC-2.3.3. I am a newbie ...
1
vote
1answer
81 views

Why i get this error while installing graphics file and how can solve it?

*** The sdl-config script installed by SDL could not be found *** If SDL was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the SDL_CONFIG environment variable to the *** full ...
0
votes
1answer
264 views

Installing JUCE on Ubuntu 18.04

I downloaded JUCE' zip file from its website: https://juce.com/get-juce/download ~/Downloads/JUCE$ ls BREAKING-CHANGES.txt ChangeList.txt CMakeLists.txt DemoRunner docs examples extras LICENSE....
0
votes
1answer
199 views

Can we use graphics.h library for C/C++ on ubuntu 20.04?

For a few days now, I have trying to install the graphics.h library in 20.04 and failed and then tried on 18.04 and it worked and I can use it, but I really want to know if one could use graphics.h ...
0
votes
1answer
469 views

what is the difference between gdb and gdb-peda?

I have tried to search on google but still could not find anything that i understand. Can anyone tell me the difference between them? And which one is better to debug c++?
2
votes
1answer
514 views

C++ code compilation fatal error: xdo.h: No such file or directory

I am using Ubuntu 18.04 on Dell Vostro 15 - 3546. uname -api Linux vaishnavi-laptop 4.15.0-118-generic #119-Ubuntu SMP Tue Sep 8 12:30:01 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux I want to install ...
0
votes
1answer
165 views

fatal error: ini.h: No such file or directory

I am using Ubuntu 18.04 on Dell Vostro 15 - 3546. uname -api Linux vaishnavi-laptop 4.15.0-118-generic #119-Ubuntu SMP Tue Sep 8 12:30:01 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux When try installing ...
1
vote
1answer
269 views

Cannot install cmake

I am new to both Linux and C++, and I am trying to install cmake, when I tried to install it using sudo apt install cmake it installed cmake version 3.10, but here is stated that at least version 3.15 ...
0
votes
1answer
111 views

Can't Pass bashrc defined arguments to the terminal

I am trying to write a code that automate some of Nasa's Heasoft program - this doesn't matter -, heainit is definied in the bashrc as: export HEADAS=~/heasoft-6.27.2/x86_64-pc-linux-gnu-libc2.31 ...
-1
votes
1answer
46 views

Is there any way to resctict telnet to communicate with C++ TCP server [closed]

I have a TCP server developed in C++. Currently, it's allowing all connections in the XML bytes length protocol. Due to some security reasons, is there any way to restrict access from the client using ...
0
votes
0answers
23 views

Permission Denied While Running Program in IDE [duplicate]

I'm very new to Ubuntu and Code so apologies if some stuff isn't understandable. I was trying to run a file after building it in a IDE (Code::Block) and the file popped up as this: https://i.stack....
-1
votes
3answers
109 views

Why does Ubuntu use Python despite the fact that Python is an interpreted language? [closed]

Interpreted languages like Python are generally slower than compared to C/C++ or Java. Are there any scientific reasons for Ubuntu to opt Python instead of other programming languages like C/C++ or ...
1
vote
1answer
1k views

How to build and link BLAS and LAPACK libraries by hand for use on cluster?

I am making use of a partial pivoting function by the name of gesv. To get the libraries to make this happen in C++ I used a one line command from Installing BLAS and LAPACK packages. sudo apt-get ...

1
2 3 4 5
15