UNIX/Linux Programming - December 2011 (Page 2)

PThreads - one of two threads doesn't run
 
Hi, my goal is to implement two threads. One running a vector of numbers upwards, the other one running the vector downwards. Both should set numbers in this...
[2 replies] Last: As an aside, whilst there's nothing at all wrong with pthreads, C++ no... (by Moschops)
fseek doesn't work or work?
 
Dear all, i wrote a function that list my file that it's binary and write it with fwrite from my struct: void ReadFile::printList(){ clearerr(bookFilePtr); f...
[1 reply] : I solved it , i replaced while (!feof ) with while (fread).... (by mpahlevanzadeh)
by bruice
‘strcmp’ was not declared in this scope
 
When I try to complier a program, there are some errors happened. main.cpp: In function ‘std::vector<std::basic_string<char> > getCmdLineParamString(std...
[1 reply] : strcmp is in <string> and memcpy is in <string.h> (IIRC) They are ... (by Texan40)
rvalue implicit move tracking?
 
Using g++ (4.6.2) is there any way to turn on compiler flags to tell what uses implicit move instead of traditional copy/assign? Recently I've been playing a...
[3 replies] Last: Can you explain? He's referring to the new std::move semantics int... (by Victor T)
Problem with istringstream
 
I'm working on a code to read in an input file and convert it to another format. I've created a function that reads in a line of text and converts it to a vecto...
[8 replies] Last: That's a good point, I'll put a flag to print an error if getline does... (by car3262)
by cdd
Open GL + Graphics
 
Hi, I would like to start graphics programming in c++ but i have no clue how/where to install graphics libraries for graphic utilities such as opengl. Could...
[4 replies] Last: Install the mesa library development packages. Eclipse should find th... (by PanGalactic)
by bmahf
Compiling boost 1.37 for Solaris
 
Hi all, I'm trying to build boost 1.37 on Solaris 10, which I have never done, and having a couple of issues. The first is an actual issue, and the second i...
[1 reply] : So for anyone else who runs into this, I wasn't able to get 1.37 to us... (by bmahf)
Function to Solve ln(x) using a Taylor Series
 
I am trying to write a program to use with a research paper about the Taylor series. Basically, I have written this huge paper about the Taylor series and now I...
[5 replies] Last: Good catch on that one Jim. I actually fixed it in my source code, bu... (by Clay Diffrient)
passing "\t" escape sequence as command line argument c++
 
Hey friends, I am new to C++, much appreciate your help on this issue. In the following code, I would like to pass a delimiter (say '\t') as a command line argu...
[3 replies] Last: I haven't check it but shouldn't your argument be ./a.out \t instead... (by eypros)
what is bitmap< 16, xxxxxxxx> bitmapname
 
hi all, please can any one tell something about bitmap.please provide if any references are there in internet plss best regards bab...
[3 replies] Last: Perhaps you mean this? std::bitset http://cplusplus.com/reference/stl... (by Galik)
linking and loading
 
How does linux handle loading multiple shared libs where there are duplicate objects across two shared libs? In other words, creating A.cpp and linking it into ...
[1 reply] : This is perfectly fine. The first one loaded wins if the same symbol e... (by PanGalactic)
Compiling multiple files in through the terminal
 
I have three files: main.cpp: where the main() function is held header.h the header file Function_Def.cpp: where the function definitions from he...
[10 replies] Last: bbgst: It wasn't working without it, so I thought it was worth a try... (by Ben Duncan)
mingw cross-compile SFML for windows
 
Hello all So I am trying to compile an SFML program for windows (using mingw) and I am getting the error fatal error: SFML/Graphics.hpp: No such file or ...
[10 replies] Last: I know it's perhaps a silly question but are they actually named "libs... (by Texan40)
Please Help
 
Hi, i'm programming in c++ for the first time in a long time and i receive this error message when building my project: levelTest.cpp||In member function 'virt...
[3 replies] Last: I have no Idea how to solve this , so try s different matter (by Pranay Venkatesh)
How to download a file from http or ftp server with c program?
 
Hello, I am looking for an open source API minimum (point of view size on disk, and complexity) in C (which requires no installation before use) which downlo...
[1 reply] : Curl or wget: http://curl.haxx.se/ As far as I know, wget is preinst... (by modoran)
by wisuzu
Gtk::Window cannot be closed, Help!
 
Why could be the causes of a window cannot be closed? I got a couple of misfuntion windows, they cannot be closed while the dialog whose create is still ope...
[no replies]
PLEASE HELP WITH THIS
 
my program is supposed to output all prime numbers, given the array of any size of elements. why isnt it working? when I compile it i don't get an error and i...
[10 replies] Last: You're writing non-portable (non-correct) code! GCC enables a numbe... (by kbw)
UDP binding interface
 
Hi, I would like to know what should be set to the interface for joining a multicast group? Regards, Michael
[4 replies] Last: Then you switch on multicasting on an interface, it asks for a route t... (by kbw)
partition array into n/5 groups
 
Hey I am working on a project where I need to use deterministic linear time algroithm to find the median of a large array. I am doing my program in c++. I am un...
[1 reply] : do this: int pb,pt; //the bottom and top of each partition for(pb=0;p... (by rocketboy9000)
Makefile problem (Driver module programming:) )
 
Hi guys I've written a simple Module (helloworld :D) but when I want to compile it I got the following error make: Entering directory `/usr/src/linux-he...
[no replies]
December 2011 Pages: 123
  Archived months: [nov2011] [jan2012]

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