All Questions
17,286 questions
2
votes
1
answer
44
views
How to identify if a thread is related to io_uring in Ubuntu?
I'm running Ubuntu and executed the command top -H -p 486944 to show my application threads, which shows a thread named iou-sqp-486944. This thread is not one that I created, and it doesn't appear in ...
-1
votes
0
answers
66
views
Access queue to a shared resource [closed]
The following simple interface aims at giving access to a C++ third party api from a shell:
#include <cstdlib>
#include <iostream>
#include "thirdparty_api.hpp"
int main(int ...
2
votes
1
answer
58
views
How to write out all connected devices using Libparted on Linux Mint?
I have been trying to print out all connected storage devices to my machine using C++ and libparted on Linux Mint 22 x86_64.
I have been tinkering with the ped_device_get_next() function, that should ...
-4
votes
0
answers
54
views
Using Azure Key Vault in linux [closed]
This is about using a programming tool azure key vault. I do not know why the AI thinks this was off topic.
We are being required to start to use Azure Key Vault to store "secrets" such as ...
0
votes
1
answer
75
views
Virtual memory management in Linux
I recently learned about CUDA's low-level GPU virtual memory management, as described in this blog post. The key idea is:
Reserving a large chunk of virtual memory without initially allocating ...
0
votes
0
answers
49
views
How to re-mmap a SHM onto a new file keeping memory data?
I created a SHM file in /dev/shm, and mmapped it to a block of memory in a long time working daemon program.
There are many such workers(processes), and they all will create many such shm files(about ...
1
vote
0
answers
110
views
Port large VS C++ solution to linux
I have a task to port a pretty large windows C++ program to linux. The Visual Studio solution (.sln) contains 50+ projects with ~4K source files so I'd like to automate it as much as possible. Each ...
-1
votes
0
answers
65
views
How to identify why a particular shared library is needed by an application
I have an application on Linux that I'm building. The executable unexpectedly needs libQt6OpenGlWidgets.so and some other "stuff". How can I determine what in my code (or code I am using) ...
0
votes
0
answers
26
views
Installing edbee library on Linux
I'm trying to install the edbee-lib. So far, I have
Pulled the repo
Built it with
mkdir build && cd build
cmake -DBUILD_WITH_QT5=False -DCMAKE_PREFIX_PATH=/home/mitjancic/Qt/6.5.3/gcc_64/ ..
...
-1
votes
0
answers
39
views
C++- error: expected unqualified-id before ‘(’ token [duplicate]
I'm getting
error: expected unqualified-id before ‘(’ token
362 | #define min(a,b) (((a) < (b)) ? (a) : (b))
| ^
in this piece of code:
/* min and max macros */
#ifndef ...
1
vote
0
answers
34
views
sched_getaffinity shows isolated cpus
I have the following code to check which cores my application is affinitized to:
#include <iostream>
#include <sched.h>
#include <pthread.h>
#include <unistd.h>
int main() {
...
0
votes
0
answers
27
views
How to solve linker issue /usr/bin/ld: undefined references when linking oracle libraries [duplicate]
How can I build the following mwe?
$ g++ -o stackoverflow stackoverflow.cpp -I/home/myuser/Downloads
/instantclient_23_6/sdk/include -L/home/myuser/Downloads/instantclient_23_6 -l:libclntsh.so....
-5
votes
1
answer
91
views
Unknown type name '__time64_t'
Trying compile my project with gcc is success. When trying to do so with any clang-based compiler the following error occur:
[build] /usr/bin/clang++ -I/mnt/40ab93ed-5db8-4e22-a055-9775c3e5b937/ISC-...
0
votes
0
answers
34
views
clock_nanosleep is giving out inconsistent latency during wakeup in rt system along with some spike of upto 1ms
I am new to rt c++ development and sorry if i am missing out on something basic.
I'm experiencing inconsistent latency behavior in a real-time system using clock_nanosleep for precise wakeups. The ...
0
votes
1
answer
84
views
Linux how to get lowest possible stack address
I want to embed a Google V8 (v6.8) in a C++ program. Since this program uses a lot of stack, I want to configure the V8 to use the entire available stack. To do this, I need the smallest permitted ...