UNIX/Linux Programming - August 2008

by ancest
binary code incompatibility between Fedora and Linux.
 
I have run into the following issue: I have simple program : #include <iostream> using namespace std; int main() { cout << "Hello, World" << endl; re...
[9 replies] Last: That's fine. You shouldn't be having any problems with dlls you create... (by Duthomhas)
usage of for loop in the place of while loop
 
how to use for loop instead of while loop in reading a file ?
[1 reply] : For fun: for(;/*while condition*/;) { //do stuff } Realis... (by firedraco)
Related to Qt3--Beginner
 
Iam doing an editor using Qt3-C++..and i want to display the contents of a existing file in a text editor.the code i tried out is... FILE *pFile; char *...
[1 reply] : The QTextEdit::setText () function does not append text, it sets a... (by Duthomhas)
by inini
math.h namespace problems
 
Hello, I'm developing a c++ application on ubuntu. I use some pre compiled libraries (I worked with them before) the thing is I'n getting error messages when...
[6 replies] Last: Posting a sample of the Vector3.h or Atom.h files would probably help.... (by Saneticus)
undefined reference (1,2)
 
Helo, i'm writing a program, that consists of 4 files. I'm using g++ as a compiler. The problem is, that i'm getting these messages when trying to compile: ...
[26 replies] Last: Doxygen can create a lot more than just API docs. The next generation... (by bnbertha)
by vvadan
Connection Pool -- Locking, Concurrent Access
 
Sorry for all my previous posts let me explain the exact problem There is a singleton object in the shared memory. It conatins a pool of connection object...
[11 replies] Last: err I know =\ (by Zaita)
by vvadan
Using Locks in a function
 
hai plz help me Iam locking an object in a function fun1() and iam using that object in another function fun2() and unlockin it will the lock still holds g...
[11 replies] Last: I would hardly call them "suggestions", more guidelines you need to fo... (by Zaita)
by vvadan
Shared Memory Object Access
 
Hi iam a newbie to C++ I have a problem, pls give me a solution I have an object in the shared memory which encapsulates an array of 6 objects. I want to...
[3 replies] Last: Multi-Process and Multi-Threaded development is extremely difficult. B... (by Zaita)
Makefile define
 
Hi everyone, How to set a define in the makefile that recognizes in the code? Like this: in my Makefile: LINUX=1 in the code: #ifdef LINUX #i...
[5 replies] Last: 10X for your reply. (i didnt find how to create a new topic). Howev... (by kerenLinux)
pthread, mutex, functions, classes...
 
hello how do i make both threads have access to the same set of updated data, when they call different functions? in addition, is the way i pass in the ...
[3 replies] Last: How new are you to C++? Multi-Threaded development is exponentially mo... (by Zaita)
by gct
Linking static library into shared library?
 
OK so I'm trying to get boost python working in a project I'm working on, the net result of my build should be a single python module. I'd like to avoid forcin...
[4 replies] Last: ./bjam --toolset=gcc --build-type=complete (by Zaita)
Reading an image into a 2D array
 
Hi all, I have just switched over from windows XP to ubuntu 8.04 and enjoying it. I have(obviously) g++, and eclipse SDK to do programming with c++. I am new ...
[4 replies] Last: Many thanks :) (by rajenipcv)
Cross-Compiling from Linux
 
Hi to all, I know that what I'm going to say is going to sound very strange to many of you, so I'll try to explain a bit... I made a Unix C Launcher for *nix s...
[4 replies] Last: I know what you're saying Duoas, and I actually though of it yesterday... (by trig cesis)
calling netstat through a C++ code
 
Hi all In oder to catch the SOAP Server thread running in backgroun in CLOSE_WAIT state , Im writing a code to execute the netstat within my server code I...
[no replies]
by kacko
Open a window on Linux
 
I was looking around the web for a tutorial on how to open a window with C++. And I kept coming across the windows.h header file. Is this header file for t...
[2 replies] Last: Thanks Duos, I by accident (I really just forgot I made this post) re... (by kacko)
by tyler
problem, word program
 
i need to make a program which reads from a file which has a word list. i then need to input more than 3 letters, and less than 8, and then see how many words w...
[3 replies] Last: I did something similar a few days ago. I read the words into a map... (by Mitsakos)
How to read files in alphabetical in the local directory in Linux using C++
 
Hello, I am new to Linux and is wondering how to read all files in the ./ directory (i.e. local) directory in alphabetical order in C++. I am aware of opendir(...
[5 replies] Last: First, no. It requires an argument. Second, the filename. The link t... (by Duthomhas)
local and current directory
 
Hello, I am new to linux and have a question pertaining to "the local and current directory", are they the same. Your response is greatly appreciated!!!Thanks ...
[1 reply] : No. See http://www.tuxfiles.org/linuxhelp/linuxdir.html :-) (by Duthomhas)
by waldo
thread with callback procedure
 
hi, I want write a thread and I want take over a procedure which should be called out of the thread, but I dont know how :( Maybe, anybody can give me a hint ...
[3 replies] Last: I will give a short info: declare a 'variable' to store a (callback-)... (by waldo)
pipe()/fork()/execl() functions do not return output of external program
 
Hello, I am writing a program which calls an external program and gets its output. I implemented this functionality into a method. When I called the method fo...
[no replies]
August 2008 Pages: 12
  Archived months: [jul2008] [sep2008]

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