UNIX/Linux Programming - October 2009 (Page 2)

by tition
code::blocks how do I make the IDE jump to the line of error
 
Hi all, Sorry for the totally newbie question, but how do you make the Code::blocks IDE for ubuntu jump to the line that has produced a mistake on the compi...
[1 reply] : You just need to click on the error message in the 'build messages' bo... (by Bazzy)
by rajnp
getting terminals of unix
 
Hi i need to get the terminals that are connected to my unix box in a c program. with ttyname function under unistd.h i am able to get the current termi...
[1 reply] : The nice thing about open source software is that there are plenty of ... (by PanGalactic)
by ImagE
Stack - Segmentation Fault
 
Hi . I'm new here . I hope I can find some tips . I read about a library called <stack> . It's new one 4 me 'cause I'm in highscool. So , i used it 4 maki...
[2 replies] Last: I fix it . :"> (by ImagE)
by bobez
udp compositing binary data for sending.
 
I am trying to composite binary data to send in a message via udp, in a linux environment. I am using sendto(). How do I composite a packet to do this, th...
[1 reply] : sendto() just takes a pointer to a block of data and a length of the b... (by jsmith)
Compiling in Linux
 
I am new to linux and know nothing special about it. I download a simulation software Hegans . In the Read me file they have mentioned 5 file to copy it into my...
[1 reply] : Copy and Paste the files in a directory. Add a project in your IDE and... (by Bazzy)
by schliz
Zombie
 
I fork and use execl to overlap a program. Now I would like to kill the program which is executed by sh and sh. How can I do this? When I send a kill(pid1,SIG...
[1 reply] : You must reap the return code from the child process. A process in th... (by jsmith)
socket programming
 
I have succeed in compiling the below code for creating a client application: #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #incl...
[3 replies] Last: What you've written is typically referred to as a server application... (by jsmith)
Parent Processes
 
In the below code, I ran and the output gave me 0 for Line A 26111 for Line B 26111 for Line C 26110 for Line D #include <sys/types.h> #include ...
[3 replies] Last: No. Read my post above again, and then look what variable each line i... (by jsmith)
Compiling Shared Libraries
 
I've just finished writing some C++ classes. I've written some test cases to test them and everything seems to be working fine, so I would like to compile the c...
[5 replies] Last: Thanks, JCED! I appreciate it. I'll admit I'm no guru when it comes... (by byuhobbes)
by sever
Char** to std::vector<std::string>
 
Hello, I was googling without success to find the "canonical" way to transfer values from char** to std::vector<std::string>. Could help? S.
[3 replies] Last: Not really, when you have an array in a pointer you should know the si... (by Bazzy)
by mamali
a question about boost thread
 
hi everyone i want to write a multithread program with libboost_thread but the problem is that it only supports functions with no arguments what should i do if...
[2 replies] Last: Newer versions of the Boost Thread Library permit this without using b... (by PanGalactic)
Trouble understanding Parent and Child Processes
 
I need help understanding how to get the following answers. Please note that these are review questions, not something I am trying to have done. I want to under...
[1 reply] : On the first, I'm not sure. Forking copies the parent and child proces... (by chrisname)
Compiling 64-bit programs
 
I'm using Visual C++ Express Edition. But I'm working on a cross-platform project, so I'll need to try my code on Linux, MacOS and Solaris too. I was going to m...
[5 replies] Last: IIRC g++ is almost exactly the same as gcc but automatically links the... (by chrisname)
input a filename into a stream while file manipulation
 
How can i input a filename when the program asks for the specific filename that is in another folder? i cannot provide this:/home/user/cpp/filename.ext and di...
[no replies]
question about mutex initialization
 
Hi, For mutex, I normally initialize it before using it as pthread_mutex_init(&mutex, NULL); However, I found in one of my applications, I declare an ...
[3 replies] Last: pthread_mutex_t, at least in my implementation (POSIX defines it as an... (by jsmith)
October 2009 Pages: 12
  Archived months: [sep2009] [nov2009]

This is an archived page. To post a new message, go to the current page.