• 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 about any topic related to programming in C++ for UNIX and Lin...
[no replies]
Need but failed run a user's alias inside bash CLI
Failed run a user's alias inside bash CLI How can run a user's alias $ grab 'man' but as to do it in a CLI $ bash -c "grab 'man'" bash: line 1...
[1 reply] : Start an interactive shell $ bash -ic 'grab man' This info is availa... (by mbozzi)
Know a text editor have feature colorizing the loop?
Sorry if not really right place for this: Is there any S/W development text editor have feature colorizing every part that is of iteration or loop process ?
[4 replies] Last: you can sort of force it with notepad++ and your own language, but nes... (by jonnin)
Cannot read data from file
Hello, I have developed an application that needs to read some data from file, but it seems to not work, here is my code: //this file exists, so no pr...
[3 replies] Last: if you want to open something only if it exists, there is a nocreate f... (by jonnin)
Excellent "Linux System Programming ... " Book
Following is an excellent Linux System Programming book that gives excellent C program examples and the book has excellent topics as chapter titles. https://ww...
[7 replies] Last: Thanks a bunch to all of you for the excellent help and information. B... (by AlexCantor)
by Borneq
Focus to specified application
I am writing multi-document text editor. I have IPC for detect other instance, if other instance is called it send message to first instance and stop. This acti...
[3 replies] Last: Yes, but focus must be set to window by application which has these wi... (by Borneq)
SMTP SendMail Help
Hello guys, i need help to finish my smtp library because i keep getting error messages from the SMTP server. Heres my code: #include <stdio.h> #inclu...
[6 replies] Last: A couple of things to consider in the future when you ask for programm... (by George P)
Detecting Key Holds MacOS
I've been experimenting around with Ncurses for a bit and discovered the wonderful world of getch() and detecting arrow key presses. However, I am unable to thi...
[6 replies] Last: Are you using a console app (implied by use of ncurses)? Any GUI will... (by kbw)
by colt
Build Mesa complain about wrong 32bit Glibc dir
Hi. Trying to build a 32bit Mesa, the process stops with the following error messages: mklib: Making Linux shared library: libGL.so.1.2 /usr/bin/ld: cannot ...
[1 reply] : Isn't there a package you can install for this? Is there a reason you... (by kbw)
by oddy
About "make" command during the installation of GCC
I am compiling GCC 9.3.0 under FreeBSD 12.3 (i386). It is OK when I type ./configure , but when I type gmake (BSD make is different from GNU Make, so I fetch...
[3 replies] Last: @kigar64551 @kbw Thanks for answering! (by oddy)
Bug with step 3 database
I would like to ask you a question about the installation of GLPI 9.5.3. For the explanation: I followed a GLPI installation tutorial to learn how to use it, wh...
[1 reply] : You mean this ? https://glpi-install.readthedocs.io/en/latest/install/... (by salem c)
by tonic
IDE+Compiler for LINUX
Hello, I changed my OS lately to LINUX/Debian and on windows i used VS2019, so i thought i ask u what is the easiest/best ide/compiler for linux? i used gn...
[16 replies] Last: Thanks for sharing such a helpful instruction, really appreciate for y... (by Terrance4933)
return-statement with a value, in function returning 'void' [-fpermissive]
Im trying to connect postgresql db from my server which has ubuntu 18.04 I have the code below but when i compile it I get the error return-statement with ...
[3 replies] Last: Amazing tutorial! This is exactly the type of post we like to see on t... (by Terrance4933)
Linux Kernel Compiltaion Fails Without Error
Hi I am trying to add new system call to linux kernel but it fails without giving me any error here is the last lines before it stops. My Kernel Version: 5.15....
[1 reply] : Try make V=1 to enable more verbose output. (by kigar64551)
how to execute update query with PQexec?
I have the code below for update query. It works but it doesnt update the table. my line if (PQresultStatus(res) == PGRES_TUPLES_OK) { ...
[3 replies] Last: Sod please , suslucoder, Learn to use code tags, they make re... (by George P)
cannot convert ‘std::__cxx11::basic_string<char>’ to ‘const char*’ for argument ‘2’ to ‘PGresult*
I have ubuntu 18.04 and postgresql 14. I have a c++ code below. Im a executing a query and want to get one specfic column. Here is my code: PGconn *conn; PGre...
[3 replies] Last: thank you so much. my problem solved. (by suslucoder)
by K9WG
Playing MP3 files
A little background. Several years ago I developed a player for MP3 files. This was to accommodate a large collection of CDs and I designed it to catalog the fi...
[6 replies] Last: Even though audio support in Linux is provided by ALSA (Advanced Lin... (by kigar64551)
How much RAM does my code need?
Good evening! I want to run an mpi C++ code on a cluster node with N cores. Each mpi process needs 1 core. The node's memory will be evenly distributed over th...
[15 replies] Last: Thanks for sharing such a helpful instruction, really appreciate for y... (by johnny5947)
Please Help Asap UNIX
1) Requirements of the script: a) You can use any shell, but you must identify the shell on the first line. Example: #!\bin\bash b) Fully document the script. E...
[6 replies] Last: Amazing tutorial! This is exactly the type of post we like to see on t... (by johnny5947)
#include <iostream> #include <string> #include <cstdlib> #include <time.h> #include <fstream> using namespace std; int losowanie(int tab,int min,int max...
[2 replies] Last: I expect it doesn't compile. int losowanie( int tab , int min, int ma... (by kbw)
  Archived months: [aug2022]