Skip to main content

Questions tagged [c++]

C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

Unmet dependencies and broken packages after installing libstdc++6

When trying to use screenshare with audio on vesktop, I got an error from the app that read "your c++ library is too old to run venmic", which prompted me to try and update it. I followed ...
linuxlife's user avatar
0 votes
1 answer
73 views

Why is head -c (and similar commands) much slower for large files than small files?

From other things I've read (for one example of many why does it take so long to read the top few lines of my file?_ ) I gather that commands like head -c 4 bigfile dd if=bigfile bs=4 count=1 or c++ ...
Jack's user avatar
  • 101
1 vote
1 answer
297 views

How to see what statement (memory address) my program is currently running: the program counter register, through Linux commands?

For a reason I need to find, a C++ application looks being stuck in a docker container. I did a docker exec -it a_template_cpp bash and entered into it. I know the top and pmap commands, and also that ...
Marc Le Bihan's user avatar
0 votes
0 answers
20 views

how to make my single header also be compatible to be compiled as module [migrated]

I have some little library header primary focused to be just included using preprocessor. But i also want to let somebody compile it to a module. As i assume now i can just add some lines modues does ...
Yuriy's user avatar
  • 11
0 votes
0 answers
32 views

Get socket inode statistics

I want to know how much network my child process is using. I have my child process PID, socket inodes, ports, everything but I can't figure out how to get the network usage. The files at /proc/[pid]/...
Mustafa Chelik's user avatar
0 votes
0 answers
48 views

Missing header files for linux development

I am new to linux development and I want to develop a linux module, but I am running into an issue. Some header files, notably <linux/init.h>, are missing (/not found) I am currently using ...
Dennis Solomon's user avatar
1 vote
0 answers
74 views

Remote control and display of embedded Linux devices

Background information - We have two custom embedded Linux devices that both contain their own GUI for operating and controlling each device and it's software/firmware. The devices are class 2 medical ...
Dheitkamp96's user avatar
3 votes
1 answer
104 views

Is there any way to compile C++ code by g++ without any disk-writing? [closed]

I have a special Linux environment: all files and folders are read-only and G++ is installed. I am also unable to run sudo. I can just run a C++ program on it. I want to compile another piece of C++ ...
MrPython's user avatar
0 votes
1 answer
32 views

Detecting the renaming of a directory containing my log-file

We have a C++ program, that logs its messages into a file. Every once in a while the directory containing this log-file is renamed (or even deleted), and a folder with the same name is created anew. ...
Mikhail T.'s user avatar
0 votes
0 answers
15 views

How to mock libmm dbus proxy APIs

I am using DBUS proxy call_sync API to read data from DBUS, now I want to add unit tests and I created a mock for that. Here is the code: class MockDBusProxy : public IDBusProxy { public: ...
ashok449's user avatar
0 votes
1 answer
86 views

Running commands using sudo from within a program

I have a c++ qt program (lets call it test_program to make it easier to refer) which runs sudo lsblk using popen and prints the output. When I run the test_program from within the qt application (the ...
yash's user avatar
  • 137
0 votes
1 answer
70 views

Error loading shared libraries: libboost_system.so.1.55.0: cannot open shared object file: No such file or directory

I want to transfer a software written in 2016 that is actively running on Raspberry 2 to Raspberry 5. In this migration process, I copied all the files to RP5. However, when I run it on RP5, my other ...
Emir's user avatar
  • 1
0 votes
0 answers
40 views

How to use "sudo -S" commnd in C++ to bypass terminal for password? [duplicate]

I need to run the following command as root without going thru any "sudo" on Linux terminal. . ( Please refrain from "security " comments...) " hcitool cc address " ...
anne's user avatar
  • 45
0 votes
1 answer
26 views

Detecting used API calls for an application

I need to run a proprietary C++ application under Linux and I need to understand if it contains any functions outside advertised features. Is there a way to list all the API calls that the application ...
Artem S. Tashkinov's user avatar
1 vote
1 answer
293 views

Makefile:12: *** missing separator. Stop [duplicate]

In trying to compile my makefile, I keep getting the same error message repeatedly: Makefile:12: *** missing separator. Stop I've removed the tabs, removed the spaces, deleted the makefile entirely ...
Kyla Henry's user avatar
1 vote
0 answers
63 views

Why are core-to-core latencies stochastic when the executable is run twice in succession but not stochastic within a run?

I'm benchmarking core-to-core latency on my server to find good core affinities. I'm trying to set the core affinities of two threads to different CPUs, and time the latency of message between the ...
souser's user avatar
  • 11
0 votes
0 answers
61 views

make: *** No rule to make target 'mykernel.bin'. Stop

I'm worrking on an OS but I'm getting this error with my makefile.win. Looks like the linker.ld output file doesn't match the naming convention of the file i'm making (mykernel.bin). Not sure if that'...
Abilaash's user avatar
1 vote
0 answers
110 views

Is it possible to use webassembly in QNX

I’m trying to figure out if I’m able to port a webassembly based webapplication to QNX. But it is hard to find any information about what versions of browsers and web engine libraries that are shipped ...
mattsson's user avatar
  • 111
0 votes
0 answers
204 views

Read physical state of keyboard modifiers in Linux (preferably in C or C++)

Is there a way to programmatically read, detect or get notified about the actual physical state of a modifier key, without requiring root level access rights? I tried X11, XCB and XKB, but their event ...
psq3000's user avatar
0 votes
0 answers
28 views

Problem with connection between custom application and qpidd compiled on ArchLinux while running them on Debian

I have a custom application and qpidd (Qpid version 1.36) which had been built on ArchLinux. Default TCP with default settings is used as protocol to connect to the running qpidd, and the connection ...
Viktoriia Pashchenko's user avatar
0 votes
1 answer
134 views

How to install the Boost.CRC library on Debian

I need to install the Boost CRC library on Debian 11.7. I've searched in Synaptic Package Manager but did't find it. Also, I would prefer to install just that specific library (in a minimal ...
minto's user avatar
  • 543
0 votes
1 answer
3k views

Import Error: /lib/libgdal.so.26: undefined symbol: TIFFReadRGBATileExt, version LIBTIFF_4.0

OS: Ubuntu 20.04 (Focal-Fossa) I get this error while running running opensfm binaries. This is not related to opensfm as it has run correctly on previous ubuntu20.04 installation. Error seems to ...
Sarvesh Thakur's user avatar
1 vote
1 answer
160 views

Launching Steam Game requires acceptance of elevation dialogs from Steam to install prerequisites

I'm having issues with launching a game through Steam I've installed through flatpak. I'm using Ubuntu 22.04.2 LTS. Steam Flatpak Version 1.0.0.75. I'm trying to run a game called SpaceEngineers, and ...
Jorogumo4's user avatar
1 vote
1 answer
126 views

vulkan build error : 'createResultValue' is not a member of 'vk'

I'm trying to compile a program that uses vulkan hpp and it uses a method in a file named vulkan_driver.h like this: // Evaluate f and if result is not a success throw proper vk exception. #define ...
Ahmed Moselhi's user avatar
0 votes
0 answers
40 views

How to get crash information of an executable to another dependent executable?

I have two C++ compiled executables in Linux machine, both are dependent on each other. First task has to monitor the second task continuously and if second task either terminates or restarts, the ...
PARTHA SARATHI Ravi's user avatar
0 votes
0 answers
455 views

libhdf5.so.200, needed by /opt/opencv3/lib/libopencv_hdf.so, not found

I developing C++ application with Qt&OpenCV. Last week i was building my application without any error but now I got the error: /usr/bin/ld: warning: libhdf5.so.200, needed by /opt/opencv3/lib/...
feinaps's user avatar
  • 21
0 votes
1 answer
2k views

Trying to understand memory-mapping with C++ in Linux environment

I've been tasked at worked to explore memory mapping to see if we can utilize it. I'm trying to wrap my head around the concept and how to write the code. I've been trying out the code in the ...
Many Questions's user avatar
5 votes
1 answer
5k views

How to build GCC 13 on M1 MacBook pro?

I want to build gcc-13 on my M1 MacBook Pro. Following official document, I download source code using git, configure and make. For configure, I refer to the way of Homebrew configure gcc-12 on link. ...
徐保钰's user avatar
  • 191
0 votes
1 answer
627 views

What's the idiomatic way of obtaining the "default" C++ include base path?

I'm building a command-line for some utility which, for some reason, needs the C++ include root, e.g. /usr/include/c++/10 (for libstdc++ of GCC-10). My question is: How do I determine what that path ...
einpoklum's user avatar
  • 9,652
0 votes
1 answer
87 views

How to "merge" sln files?

Im pretty new to c++ and want to add keyauth to my simple application. I want to use this (https://github.com/KeyAuth/KeyAuth-CPP-Example) as a base. How do I add the solution file to my existing ...
Nikolaus's user avatar
1 vote
2 answers
1k views

Print ASCII extended table with C++ (won't print cyrillics - ukrainian letters)

So, I am to print ASCII extended table in C++, it must include Ukrainian letters (cyrilics). I am on KDE neon 5.26 linux distribution, it is based on Ubuntu. Terminal is KDE's Console obiviously. I ...
Vladyslav Rehan's user avatar
0 votes
1 answer
871 views

error trying to build/make from source

I'm trying to build opendingux from github repo/source. https://github.com/OpenDingux/buildroot OpenDingux is an embedded Linux distribution focused on (retro) gaming. I cloned the repo and then ran ...
AeroMaxx's user avatar
  • 199
1 vote
0 answers
35 views

C++ How to debug a WM/DE or X.org crash?

I have a huge code that deals with sockets, threads and processes and it is a complete mess... While editing recently, my WM crashed after I executed my code. Since every window is killed, I can't ...
donaastor's user avatar
  • 214
0 votes
1 answer
324 views

How to avoid duplicate random number generation?

TL;DR: A program draws the same random seed when started twice simultaneously. How did it happen? Details I'm running an MCMC statistical analysis, so I execute the program (phylobayes) twice to get 2 ...
PlasmaBinturong's user avatar
0 votes
1 answer
456 views

Sending absolute events ABS_X ABS_Y using libevdev

I found little to no examples online about sending absolute events (EV_ABS) using libevdev. I was able to create a device and send some keystrokes, but no luck with absolute events. The device is ...
olbotta's user avatar
1 vote
0 answers
2k views

error: *** A compiler with support for C++11 language features is required

I want to Build GCC 11 from source on Ubuntu 20.04. I had some problems in making package for ROS and hence I decide to update my GNU. my gcc and g++ versions are 11.1.0 when I extract the downloaded ...
Pouyan's user avatar
  • 13
0 votes
1 answer
500 views

How to make a path available for the entire system in Ubuntu

My tflite directory is as follows: /home/me/tensorflow_src/tensorflow/lite/ However, I fail to import it in my C++ project: #include "tensorflow/lite/interpreter.h" // getting a not found ...
Levent Ozbek's user avatar
1 vote
2 answers
132 views

Dealing with different prototypes of pipe()

According to this manpage, pipe() can have different prototypes depending on the architecture. If I want to be as cross-platform as possible, do I now have to write code that compiles when it is given ...
Ground's user avatar
  • 13
0 votes
2 answers
323 views

Cannot link to matlab libmat.so and libmx.so under Eclipse IDE

I am trying to compile matcreat.cpp under Eclipse C++ IDE. It allows to exchange matlab data with c++ programs. At some point I compile the program : /* * matcreat.cpp - MAT-file creation program * ...
Bap23's user avatar
  • 1
0 votes
2 answers
151 views

systemd service file closing socket

I need to run a C++ binary with systemd. When I execute the binary directly or with a bash script it runs fine for days: nohup ./testbinary & ./test.sh test.sh: #!/bin/bash LD_LIBRARY_PATH="...
user523897's user avatar
0 votes
2 answers
7k views

Best way to run child process in C++ if you want to get output of the called command

I am writing an application in C++. In many places in my code I use system() function to run some commands. I am not sure this is an elegant solution and I would like to replace using this function by ...
tom654321's user avatar
2 votes
1 answer
539 views

How to split phyical input device into multiple virtual ones using PulseAudio/ALSA?

So i have audio interfaces with 18 input channels each. Data from these devices is fed through a C++ program using a library called PortAudio. Problem is that when i start going above 13 channels per ...
JaCkSoN's user avatar
  • 21
0 votes
1 answer
581 views

curl.h not found in manjaro

Everywhere people say you'll have to apt install libcurl. But I'm on manjaro and I have curl installed, there is no libcurl in the repo. No idea what to do now. In file included from ../main/main.c:1: ...
sezanzeb's user avatar
  • 407
0 votes
0 answers
20 views

sqlite3 - how can I get `ALL FLAGS` used in compilation? [duplicate]

In short, I'm facing something very regular ?q=Expression+tree+is+too+large+(maximum+depth+1000). Linux: Kali linux 2022.1 ( 5.15.0-kali3-amd64 ) Full: Linux kali 5.15.0-kali3-amd64 #1 SMP Debian 5....
yohoho3412's user avatar
0 votes
1 answer
5k views

Specify which libstdc++ to use

I want to make use of a more recent GCC version. Therefore, I compiled GCC 10 and installed it into a non-standard directory /software/gcc10/. So far so good. However, I am faced with problems when I ...
Raven's user avatar
  • 733
1 vote
0 answers
86 views

Tracking down symbols used by library in binary ELF as listed in memory map

I have an application written in C++ that crashed during exit. The reason for the crash is understood, there are references to different versions of the same library mixed inside the executable. This ...
codeZonkey's user avatar
3 votes
2 answers
5k views

Finding out functions/variables used in the code from a given shared library

I'm analysing a large C++ project on linux platform(redhat), specifically the shared libraries used in it. How can I find which symbols(functions/variables) are used in this project from a particular ...
Vishal Sharma's user avatar
0 votes
1 answer
797 views

How to reload the configuration file as a systemd daemon (or service), upon receiving SIGHUP?

I am trying to write a systemD daemon for my program. While I was reading the Linux man page, I noticed a line: If SIGHUP is received, reload the configuration files, if this applies. My question is ...
Runsheng Ma's user avatar
2 votes
0 answers
400 views

X11 - Hide windows from screen cap

I'm aiming to hide X11 Windows from screen capture software such as discord/obs, Within windows i am able to do this using SetWindowDisplayAffinity on windows, but on X11 i have struggled to find a ...
Conni Bug's user avatar
0 votes
2 answers
1k views

How to Send a Signal or Data to C++ Program from Bash Script

As the title states I would like a to be able to send a signal, alert, message, or something to a C++ program while it is executing from a bash script. I have seen some solutions where a script will ...
itanitarek10's user avatar

1
2 3 4 5
7