• Forum
  • UNIX/Linux Programming

UNIX/Linux Programming

by admin
Welcome to this board!
Welcome to the forum for UNIX and Linux programmers in C++.com! In this forum, users can to talk ab...
[no replies]
by hbcpp
ping vs gethostbyname to check internet connection
I need to a way to check if pc is connected to the internet. The most common option is to use ping, ...
[3 replies] Last: It'll tell you that your internet is alive, because you queried your D... (by salem c)
How do I run a terminal command without freezing the GUI app
I'm doing an app in wxWidgets and I need to run a linux command. The command is mpv <video URL> <som...
[2 replies] Last: I added the "&" at the end and now it works! Big thanks :3 (by fivetwoseveone)
sql query problem in c++
hi to all, i've centos 7.5 in VM. I've a problem with sql query. here i want to display product, cus...
[7 replies] Last: what I would do is print the generated sql statement and run it in you... (by jonnin)
by Ovid
Failed to compile my OS Kernel
Hi, I'm creating an OS on Ubuntu and I create my project using cmake. Here is the CMakeLists.txt con...
[13 replies] Last: The code you showed, is that main64.asm? You're not very clear in the... (by kbw)
graph matrix
I have a finite element mesh with 4 element and 6 node; the element connectivity is element 1: 1 2...
[4 replies] Last: Thanks for your answer. (by resabzr)
Amount of processes
Do I understand correctly that 2 processes are created in the code below? Since one fork () call cre...
[3 replies] Last: I think it's different. fork() returns 0 to the child and the pid (or ... (by dhayden)
Linux(Ubuntu Visual Studio Code) error message!
Unable to open 'atoi.c': Unable to read file '/build/glibc-eX1tMB/glibc-2.31/stdlib/atoi.c' (Error: ...
[2 replies] Last: You can ignore the error, it's because files like that aren't packaged... (by Ganado)
GNU Make rule(s) from two lists
Good day! :3 I am learning Make for a few months, and got a problem that intuitively should have a s...
[8 replies] Last: - I want my "build system" to be easily transferable from one project... (by keskiverto)
Beej network programming example - unable to receive packets
I'm trying to work through https://beej.us/guide/bgnet/html//#datagram I have two computers each usi...
[9 replies] Last: Solution: uninstall WSL2 :) (by rjphares)
What do these lines of code mean (each separately). It is said that here we set the semaphore to -1 ...
[1 reply] : Take a look at this: https://www.tutorialspoint.com/unix_system_calls... (by coder777)
undefined reference to shared object function
hi to all , i've codeblocks 20 in centos 7. I am building a small project in which i build a libdate...
[4 replies] Last: [quote=salem c]Also, you shouldn't be putting your own headers and lib... (by keskiverto)
rand() array
I have 7 arrays and 7 threads. I get 7 ID for all threads. ID are different but arrays have the same...
[3 replies] Last: If you don't want unnecessary sleeping, also consider rand_r which can... (by Ganado)
Linux flle structures (1,2)
Hi guys I'll start of by saying I'm pretty new to Linux, on windows all files have a signature or m...
[21 replies] Last: Check this out: https://en.wikipedia.org/wiki/List_of_file_signatures ... (by agent max)
by EmanCS
measuring running time inside loop
HI I want to measure the running time of function run() in two different parameters A and M. If I c...
[10 replies] Last: ^^^ it depends, of course. 1) caching matters (a LOT) but if you meas... (by jonnin)
Duplicate Data Off Socket - Perhaps?
Hi All, I'm new to C++ programming and found myself, despite much googling very confused into a lit...
[2 replies] Last: Thank you Salem C. Post Updated to suit. I've resolved the issue toda... (by ainsley1006)
getpid() checking of code
I need to get pid for every processes. In process I get sum of every arrays. In the I get max sum. I...
[1 reply] : We did this already, and the code looks no different to last time. htt... (by salem c)
Where belongs custom header files?
In which directory at best I would move private header files so that the compiler find it by default...
[5 replies] Last: Both #include "foo" and #include <foo> seek from multiple paths. ... (by keskiverto)
by tmvaz
Changing mic levels through C++
I'd like to create a simple program on Linux in order to adjust and fix the microphone level setting...
[1 reply] : What OS and compiler are you using? Depending on your OS, you can jus... (by agent max)
/usr/src linux is shared among many side-by-side Linuxes
How is it if /usr/src linux is shared among many side-by-side Linuxes installation
[7 replies] Last: Or 69, or maybe even Turboencabulator...it's hard to say really. (by agent max)
  Archived months: [jun2021]