Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-1 votes
0 answers
23 views

Alma Linux VS Code C++ Application.json and task.json - cannot debug code

I am getting an error when I try to debug. the application.json and tasks.json both are giving me an error here is what I got I install gcc for linux and I am on Linux Alma. Application.json { "...
Tim Astras's user avatar
-1 votes
0 answers
43 views

How to debug hanging notify_all() call in linux [closed]

I have an incidence where notify_all() does not seem to exit properly. Based on this answer notify_all() should return in any case. I have producer code in the following form: void producer() { ...
Luigsech Ingemar's user avatar
1 vote
1 answer
74 views

ODR Violation with static variables and multiple shared libraries in Linux

Say I have the following scenario: A static library (let's call it DummyStatic.a) that declares and defines the following class: class DummySingleton { private: static DummySingleton the_instance_;...
pureofpure's user avatar
  • 1,090
0 votes
0 answers
36 views

Correct use of boost notify_all in interprocess communication on linux kernels [duplicate]

tl;dr should boost notify_all() be used before or after releasing the lock? Wikipedia has this comment on signal (in my view similar to broadcast): it is often also acceptable to release the lock ...
Luigsech Ingemar's user avatar
0 votes
0 answers
39 views

How would I take input and output data on multiple tmux terminal using a cpp program?

The code below creates two panes in tmux and counts down to 20. #include <iostream> #include <fstream> #include <thread> #include <vector> #include <chrono> #include <...
Karan Patel's user avatar
0 votes
0 answers
22 views

Flutter can't find libsecret using nix/nixos

I am trying to run a Flutter application with flutter_secure_storage as a dependency on linux. This dependency in turn needs libsecret and won't compile despite the path being present in ...
Butzlabben's user avatar
1 vote
0 answers
169 views

Global variable marked as extern is duplicated

I am linking a shared library that declares a global variable like so: __attribute__((visibility("hidden"))) extern HookList<MallocHook::DeleteHook> delete_hooks_; See src/malloc_hook-...
Volodymyr Lashko's user avatar
0 votes
0 answers
23 views

How to include ggml library in native C++ Android Studio Project for Magic Leap

I am trying to run GPT-2 on magic leap with the ggml library. By now, I have succeeded in running ggml examples on my Windows computer. However, I don't know how to link all the libraries and the ...
Xinyu Liu's user avatar
0 votes
0 answers
44 views

androiddeployqt vs linuxdeployqt [closed]

I installed qt on my (arch)linux PC with command: sudo pacman -Sy qt6 Now I want to create a release version so I need something like linuxdeployqt6 but I haven't got it! I try to search it through ...
Black Hat's user avatar
2 votes
0 answers
39 views

Attempting to write to disk and check the before and after availability of space using statvfs, but I see no change in blocks available

I am using statvfs to monitor my disk space. I run this program and see no changes in the amount of available blocks within my system, but when I run the df command I am able to see that there's disk ...
Mr.Longbottom's user avatar
0 votes
0 answers
58 views

How to compile for Linux when on Windows using Code::Blocks?

I have a console app which I want to compile for Linux. I don't have access to a Linux operating system at the moment, but I really do need to compile this program for as many operating systems as ...
hosain's user avatar
  • 1
0 votes
0 answers
28 views

Boost.Asio IP Header how to set and read DSCP or TOS field

My application (coded in C++, using Boost.Asio lib, running on a LINUX machine) handles several UDP Multicast / IP sockets. (#1) For the outbound traffic, I need to set the DSCP field of the IP Header ...
WPaul's user avatar
  • 1
1 vote
1 answer
83 views

Can pthread_exit be used with noexcept functions?

I have a model where minimal work happens on main thread, and almost all work happens on worker threads. I want to ensure that the main thread NEVER dies and ALWAYS returns back to the OS. Since, all ...
Wolfie's user avatar
  • 101
0 votes
1 answer
72 views

Trouble reading a file with C++ in vs code, not sure if this is because I'm working within Linux

Im trying to read the contents of a file in C++, but when I go to run the program it keeps failing. Not sure if this is because I'm using ubuntu linux. Code below: seems basic enough but for some ...
Dokkaebi's user avatar
0 votes
0 answers
40 views

running ./configure returns error: Cannot link with libtool libs! (libltdl)

I am attempting to compile an older program on a new system. I've done this a few times with this same software and I have always been able to find some way to get it to work but this time I am ...
ZCT's user avatar
  • 329

15 30 50 per page
1
2 3 4 5
1150