UNIX/Linux Programming - February 2011 (Page 2)

Using pthreads in Ubuntu
 
I'm a newbie to parallel programming. I'm trying to use pthreads to parallelize a program I'm coding. However it seems that the parallel version of my program t...
[2 replies] Last: well, threads aren't neccessarily any better. 2 cores won't make muc... (by bigearsbilly)
Semaphore Deadlock
 
This problem has become very frustrating. This is supposed to be a simple program to create shared memory, then 9 readers and 3 writers of the shared memory cou...
[2 replies] Last: Yeah, I found the same thing; it works running in GDB, but not when ex... (by davermont)
pthread, passing 2d arry
 
I am new to thread programming. I need help casting an array so that it can be passed to a thread as a void pointer. In the thread I need to de-cast my array to...
[8 replies] Last: Thanks a lot for the great help!! Now my code got compiled properly. ... (by calculix)
Passing Arrays as parameters
 
I am trying to create a function that returns the length of an array. I am running into endless problems, I believe because it will only point at the array, no...
[9 replies] Last: Okay, thank you. It's been awhile since I've done C++, so I had compl... (by Falconus)
by ToRcH
Linux Console Color (the "\033[" way)
 
Hi all. I just wanted to help people in this matter since I too went through this and had some problems with good answers related to this problem. (and I ...
[1 reply] : http://ascii-table.com/ansi-escape-sequences.php http://ascii-table.c... (by kbw)
fatal error: clapack.h
 
Hello everybody. Some times ago, I wrote an own program on a Linux System without any problems. Now I need to rerun this program computer. Therefore I install...
[1 reply] : If the file on your system at all? If so, fixup your include path to ... (by kbw)
Find* vs *dir
 
I've been converting a Windows App to a Unix App, using XCode. Nearly every error points me to the Find* commands. For some of them, I can't even find their U...
[1 reply] : It might be helpful if you stepped back an looked at how POSIX directo... (by kbw)
setup new AIX environment
 
hi, i need to setup a new environment and bring forward some of the features from the previous environment. so, in previous environment when i do "sdir", it ...
[2 replies] Last: thanks (by pathfino)
using more than 1 client file
 
Basically I need to make my own priority queue so I have a .C and Header here for constructing the process table. Then another .C and header for the binary Tree...
[no replies]
iostream library not available
 
I am using the CodeLite IDE. I compiled the following program using CodeLite (It is a C++ program): #include <iostream.h> int main() { cout << "Hello Wor...
[2 replies] Last: Thanks jsmith. Your suggestion worked! (by techningeer)
How to display the CPP program tree like structure ?
 
Hello, I am having several CPP source codes and they are placed in unix environment. I wish to know how to display the source code tree like structure for al...
[3 replies] Last: Check out Doxygen. It can generate a nice HTML reference for the sour... (by moorecm)
jwsmpt question on linking
 
Hello Im taking an into to network class and the professor wants us to link files and make this demo program work.... // Note that the only valid version of...
[3 replies] Last: you may have a library, it will be called something like libjwsmtp ... (by bigearsbilly)
send file with FTP from small Linux Version
 
Hello I have this problem. I need to do this: I got a small version of Linux installed in some small devices. These devices come from the provider with this ...
[2 replies] Last: what about plain old ftp? you can use a ~/.netrc file to automate if ... (by bigearsbilly)
Linking Cpp to C
 
Hello, I have generated 3 dynamic libraries (libbasic.so, liblia.so and libsos.so), and my application 'crit_pts' successfully compiles and links to these li...
[1 reply] : Well, I should have googled before asking. I found the answer here ... (by bhatiaharsh)
automate mouse click for time lapse any script or plug in for luciole?
 
Hello all! I'm hoping someone here knows of a way to macro my mouse clicks. I am using luciole to take time lapse pics of events like plants growing ice freez...
[1 reply] : I'm not sure what luciole provides, but you can easily script gstreame... (by PanGalactic)
system("ffmpeg...") returns immediately
 
I have to implement some ffmpeg routines as soon as possible. Best would be to use the libav directly. But it's yet not possible (needs time). In the meantime I...
[3 replies] Last: Try using popen rather than system and see if that makes any differenc... (by sadavied)
by DOSIX
g++ doesn't recognize random number function
 
I include ctime in my file. However, when I compile it via command line, it says that srand() and rand() aren't declared within the scope of the function I put ...
[1 reply] : rand isn't defined in <ctime>. It is defined in <cstdlib>. Is that h... (by PanGalactic)
by Sauve
Restaurant Management
 
I am trying to get the user to order an item from the menu after they have input all the data (eg. # of tables, # of items, item names and item ID...). After th...
[2 replies] Last: I think your while condition on line #81 is always true. First, ... (by rcj)
C++ templates and static checks ?
 
This problem is coming again and again to me in different formats. I try to illustrate it with following simple example: #include <iostream> using name...
[7 replies] Last: #include <boost/type_traits/is_same.hpp> #include <iostream> st... (by jsmith)
im a newbie.pls guide me
 
how can i output the value k from the input string day?and is it correct the declaration of string day?;P int k; string day; { cout<<"enter day: "<<endl...
[2 replies] Last: i know. i dont even understand it myself. hahhaaaa. let me refer it fr... (by kamilkamil)
February 2011 Pages: 123
  Archived months: [jan2011] [mar2011]

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