UNIX/Linux Programming - October 2015

Cross-Compiling Find Mysql/Connector on Linux with MiniGW
Hello How do you detect the MySQL CPP Connector on Linux on Ubuntu(Linux) using GCC, or MingGW to create a Windows app? I tried http://pastebin.com/2P438hf7 ...
Oct 29, 2015 at 9:12pm
[no replies]
server with socket - ip listening
hello, I'm writing a Class to make a simple server with sockets. So I need to learn what are ip-adresses that my server is listening. I follow sock_addr stru...
Oct 29, 2015 at 8:54am
[1 reply] : We've posted sample servers before, you can search the site. But the s... (by kbw)
by Ozzy69
Help with file in c++
Hello, How print of the file of end of file for start of file. Because this normal this start and go until the end, for example: historico.txt: Sum: 3 4 5 ...
Oct 29, 2015 at 12:10am
[3 replies] Last: You have to read the file in and store it in a container that can be s... (by kbw)
by RaduV
What is the difference between 64-bit and 32-bit software?
Is the difference primarily in the build process, or is it in code as well? Can I download any source package and build it for both 64-bit and 32-bit? I'm on...
Oct 28, 2015 at 7:00pm
[4 replies] Last: My only question is if/how a single piece of software can be compiled ... (by RaduV)
Mac keychain an C++
What is the easiest way to write a command in C++ that detects if the mac keychain pops up. I want to write something along the lines of: if(keychain.isA...
Oct 28, 2015 at 5:33pm
[no replies]
by Ozzy69
Help me with file
Hello, I dont print of code: I want print of last line until the third line of file, look my code: historico.txt: Sum: 3 4 5 6 = 18 Sum: 2 3 4 5 = 32 Su...
Oct 28, 2015 at 3:29am
[no replies]
Fork question
A question asks how many processes are created at the end of the loop below. #include <stdio.h> #include <unistd.h> int main() { int i; for (i = 0; i...
Oct 27, 2015 at 5:43am
[3 replies] Last: I actually misread the solution. I was looking at a solution to a diff... (by DyslexicChciken)
by zolo
configure file fails when checking mpi (1,2)
Hi, I am trying to compile the blochlib-1.2 libraries on Ubuntu 15.04. After compiling the fftw3 and mpi libraries into /usr/local/ the configure with option...
Oct 26, 2015 at 4:51pm
[20 replies] Last: Thanks Krisolafson. I might try to submit a report but I think the lib... (by zolo)
by shome
need to parse a txt file line by line forward or backward
I need to read a txt file line by line. On pressing the right arrow buttton it should read the next line. On pressing the left arrow button it should read the...
Oct 22, 2015 at 2:55pm
[1 reply] : Please do not double post. This is a duplicate of http://www.cplusplus... (by kevinkjt2000)
What process does fork(); create ??
The title of my thread says it all.. I've just started learning Operating System.. My question may seems very stupid to you.. but honestly I don't any thing ab...
Oct 20, 2015 at 10:56pm
[6 replies] Last: x=4+6; is a statement. On the other hand, see: <https://en.wikipedia... (by tcs)
by esolve
how to properly deal with send/write with a non-blocking socket?
I have a socket which is used to receive and also send packets. And the pseudo codes are: setnonblock(fd); add_event(event_base, recv_ev); ...
Oct 19, 2015 at 7:43am
[1 reply] : The whole point of using non-blocking sockets is allow you to do stuff... (by kbw)
Different output in Linux
I've created my code in Microsoft Visual Studio Express 2013 and it compiles and runs fine. I've moved this over to Linux and had compile errors. To fix it, I h...
Oct 18, 2015 at 8:27pm
[11 replies] Last: > I've changed that part http://www.eelis.net/iso-c++/testcase.xhtml (... (by ne555)
Sender - Receiver with fifo
I have to write a program that consists of two parts. First part from argv receives name of file, then writes it in fifo. Second part have to read from fifo an...
Oct 17, 2015 at 6:51pm
[1 reply] : Start by finding out what a fifo is and checkout examples of how to us... (by kbw)
by zolo
linking openBLAS
Hi, I have yet again run into a compilation problem. I have downloaded the openBLAS libraries and compiled them without error. So far so good. The I would li...
Oct 14, 2015 at 7:27pm
[1 reply] : ok I figured this out. This leads to error because of number of white ... (by zolo)
Terminal Commands
Hi There, I have to write a program which takes "ls" command (that displays the list of files in linux) as a command line argument.. I don't have any idea .. ...
Oct 11, 2015 at 10:54am
[1 reply] : Duplicate post. Please don't do that. http://www.cplusplus.com/forum/g... (by kbw)
c in linux
hii friends I am a beginner in Linux and I want to run my c programme in Linux how I run please describe in brief steps..........
Oct 9, 2015 at 5:59am
[5 replies] Last: Step 1. Open up a terminal Search for the terminal application in the ... (by mathew17)
Create five processes running the given program with five different names
#include <sys/types.h> #include <sys/time.h> #include <sys/resource.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <dirent.h> #i...
Oct 9, 2015 at 12:20am
[1 reply] : Can you explain what you want. Your question doesn't really make much ... (by kbw)
Qmake Library V8 'undefined reference'
Hello. I am trying to link a library(Google V8) using Qmake and doing something wrong. Following the https://developers.google.com/v8/get_started guide, e...
Oct 8, 2015 at 2:33pm
[4 replies] Last: That did it! Thanks! :D It was also because I didn't have the backslas... (by closed account oGhfSL3A)
by Jinu9
<weratomx.h>
Hi Friends, I need to know if this header file is a part of standard C++ Library . In my application or component I am having a shared library and I am getti...
Oct 7, 2015 at 12:32am
[3 replies] Last: again, it is not standard c++. only thing that could find is https://... (by ne555)
by lolwe
Server/Client with threads
Can someone help with this? C++ Visual Studio 1 Server and 2 clients.1st client send symbols a..z and the server returns them converted to uppercase. 2nd clien...
Oct 6, 2015 at 5:12pm
[1 reply] : You have to make a start and show us what you've done. Visual Studio ... (by kbw)
October 2015 Pages: 12
  Archived months: [sep2015] [nov2015]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.