C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.
Questions tagged [c++]
326 questions
7
votes
3 answers
System("pause") in Unix?
I normally use a debugger such as cgdb so I thankfully hadn't needed to resort to system calls for debugging, until now.
I have a binary that takes around 30 minutes to load in gdb and frequently crashes the debugger thereafter, probably due to the…

quant
- 4,161
1
vote
2 answers
Prevent computer from sleeping in C++
I need a way to prevent the computer from sleeping, turn it on/off at runtime.
I believe SetThreadExecutionState does that for windows, now I am looking for a way to do that in Linux.

HBatalha
- 109
0
votes
1 answer
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 shown by sudo libinput list-devices but when I try to…

olbotta
- 1
0
votes
1 answer
deploy a c++ program with c++11 support in older CentOS machine
My program depends on libstdc++.so.6 which depends on /lib64/libstdc++.so.6.0.19
But my older CentOS has libstdc++.so.6 => libstdc++.so.6.0.13
Questions
Should I check the version of the libstdc++.so.6 if less than 0.19?
How do I update the…

Ganesan
- 1