UNIX/Linux Programming - March 2010

by tene
Reverse Linked List without temp node
 
Just saw this question on interview questions list.. Anyone has the answer??
[7 replies] Last: > I think OP wanted it done without a temporary node(s). I only see... (by choisum)
Opencv and gtkmm dont seem to get along... why??
 
Hey guys, so I am currently making a program that needs both gtkmm (for the control pannel) and opencv to function. what i have done is to make two separate thr...
[no replies]
by herbey
shared memory not being freed?
 
Hi I'm using the shmget to generate a section of meory shared by both client and server. There is something strange happening. When key=X, shmget fails when I...
[2 replies] Last: I decided on SV because it is my understanding that it is the most por... (by herbey)
Test EOF with lseek and read
 
Does anyone know how it is possible to use read() and lseek() in a c program to test the end of a file without changing the current position in a file? I thoug...
[2 replies] Last: Zhuge - i agree but I was asked to implement a function using read() a... (by snag49ers)
C++ forward reference
 
I have two C++ classes, Foo and Bar. Foo is defined in Foo.h and Foo.cc, and Bar is defined in Bar.h and Bar.cc. Foo is a container for many instances of Ba...
[2 replies] Last: Wow thank you so much! That works perfect! Should have thought of th... (by Rambetter)
Starting on Linux
 
Hi, I've made a program which uses the WinAPI for some actions, the only thing I have to do is replace/rewrite that code with code that should work on linux....
[6 replies] Last: @deepeshp, What? The entire point of cygwin is that it emulates the P... (by chrisname)
setitimer is Failing in cygwin after long time.
 
I created setitimer in loop for create timer for every interval.After long running that is automaticaly going out of the loop. int timeOutSec ...
[2 replies] Last: thanks for your reply. void StatHelper_i::SignalHandler(int sigNum)... (by deepeshp)
gtk+ g++ error: invalid use of member
 
#include <glib.h> #include <gtk/gtk.h> #include <iostream> using namespace std; #ifndef CONNECT4MENU_H #define CONNECT4MENU_H static gboolean delet...
[no replies]
by minesC
Browser Control
 
Hello, Despite a long search, I haven't found the answer for linux users. I'd like to write a program that would open a web browser (I know how do to do that...
[1 reply] : Use a text-based browser such as w3m ;-). May I ask, why do you wan... (by attaboy)
Cant execute an opencv pgm
 
hey, I'm new to Linux & i need to get started with programming using Opencv. I've gone thru the tutorials mentioned here - http://www.cs.iit.edu/~agam/cs...
[no replies]
Boox.Regex No matching function for regex_match
 
I was having a hard time getting a sample regex to work, the function I mean. Copying from examples (http://www.boost.org/doc/libs/1_42_0/libs/regex/doc/html/bo...
[2 replies] Last: well the original code is the one from the link I posted, just the exa... (by purefan)
by macla
How to get cpu utilization
 
Hi, How to get cpu utilization for solaris using c or c++ ? Any API ?
[5 replies] Last: check out http://www.i-scream.org/libstatgrab/ usefull little li... (by enjoydownunder)
by andra
'std::bad_alloc' and graph recursion problem
 
Hi All, I would like to build a graph of words and be able to traverse on such a graph. I have written the following piece of code to do that: map<string...
[no replies]
Question on popen
 
Hello All, Is it possible to use popen for multiple piping. Ex: If I want to achieve "last | sort | wc -l" command using popen, how to do it? Is it pos...
[3 replies] Last: Take a look at the first post of this thread: http://www.gidforums.... (by lloydchristmas759)
Visual 2008 to Cygwin/ Linux Compiler Problem
 
Hi, My problem is that a program that I compiled and run perfectly well in visual 08 doesn't compile when I am in linux/ cygwin environments. Basically, I k...
[3 replies] Last: Usually, code moved to gcc from msvc that doesn't compile is down to m... (by kbw)
inline static class methods?
 
I'm wondering if it's possible to have static class methods that are inline. I read this: http://www.parashift.com/c++-faq-lite/inline-functions.html#faq-...
[3 replies] Last: Thanks guys, your replies make a lot of sense. (by Rambetter)
Boost (Regex) Linker problem
 
Hello all, Ive been searching for a good while now and have an idea of what is happening back stage yet cant find a way to fix it. Trying to use regular e...
[4 replies] Last: Thank you for your suggestions, finally figured it out (I think) he... (by purefan)
by rba
message queue problem
 
Hellow, i'm want to use a message queue; i found a example here: http://www.cs.cf.ac.uk/Dave/C/node25.html but i have a question. Is it possible to se...
[no replies]
Simple breadth first question
 
I've got a working Binary Tree class, and a working breadth first traversal (using stl queue), but just need someone to help me implement a level feature. for ...
[1 reply] : please don't double-post. http://www.cplusplus.com/forum/beginner/2112... (by imi)
by hasmik
warning: unused variable(related with assert)
 
Hi all. I have a large code with asserts like this { bool status = func_call(); assert(status); } and build it with this command: g++ -m...
[2 replies] Last: Thanks a lot. This is a 'beautiful' solution. (by hasmik)
March 2010 Pages: 123
  Archived months: [feb2010] [apr2010]

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