UNIX/Linux Programming - May 2009

by vijkrr
Execution Time for Fortran using C
 
Hi, I want to write C fuctions Which will be called by fortran. It has to tell how much time it takes to execute the program. For eg: from Fortran: C...
[1 reply] : All of that depends on your environment. Precise timing will vary bet... (by kbw)
by oramiq
tracing
 
hi everybody,,, iam programming c++ under linux \ ubuntu,, i use the terminal to compile and execute my programes by using : make filename.cpp ./filename ...
[7 replies] Last: yes you are correct.. -ggdb give some other debugging options/form... (by writetonsharma)
by didu
Link problems
 
Hi guys, I have a rather strange linking problem. I'm working on a project in C++ on Linux. The project is rather large, and its modules are broken into mult...
[3 replies] Last: And if you have circular dependencies, it is OK to link against the sa... (by jsmith)
by korisk
huge pages
 
Hi! Please tell me how can i use huge page memory allocation in C++. G++ compiler Thanks
[3 replies] Last: computerquip: i don't really want to use huge pages, but want to know.... (by korisk)
Linux Version number and hardwares list
 
Hi, I am looking for a C/C++ code to get the Linux Version number and the hardwares list in the system like drive size, RAM size etc. Also, Is is possible...
[2 replies] Last: Take a look at the "smolt" program and see how it does it. (by PanGalactic)
how can I get the development document in linux
 
hello everyone,i am a coder on win.i want to develop software onder linux.but,there isn't good document on linux. i've search lots of data,but most of them is ...
[1 reply] : Linux has perfect manual pages. Using example: man g++ If you don't ... (by Denis)
by waldo
program crashed by file operation
 
hi, I want open a file and read something out but if I close the file then the program crashed and I dont know why. maybe anybody can have a look on the source...
[4 replies] Last: yes you must have right, because I have copied the content of the proc... (by waldo)
pthread-memcpy-free problem
 
hi all, I am doing video & Audio decoing by capturing MPEG2TransportStreams To Decode Video I am using avcodec library (static) To Decode Audio I am usin...
[2 replies] Last: Hi Hammurabi, thank you for your response obviously, main threa... (by Jaishreepadma)
a n00b problem
 
Hello! I'm a C/C++ newbie that pretends to learn by myself this programming language and I'm reading the C++ language tutorial for my first steps into it. Th...
[12 replies] Last: c++ is c with some adds, but it is also a lot more. Object oriented, o... (by brokenbot)
C++ Server (Corba Communication)
 
Im trying to create a c++ server. Im using the schedule_Mgmt IDL , where module-schedule_Mgmt and i hav 3 interfaces , 1-config , 2-Listener, 3-MessageServer t...
[2 replies] Last: Im using Tao-Ace ORB , My NameService is up and Running. Im able to ge... (by vishy85)
Getline with type int
 
Hi, I am trying to make a program that writes and reads data from a file, and I am trying to read a number from a file and store it in a variable of type int. ...
[6 replies] Last: Alright stringstream worked perfectly. Thanks guys. (by epiqu1n)
by jjhall
Array of ofstream objects
 
Hello, I am having opening a series of ofstream objects. I have created an array: ofstream *outFile = new ofstream [bin_list.size()+1]; where ...
[9 replies] Last: There is system limit of number of filedescriptor per program. Default... (by suokko)
by stroem
Active application info?
 
I want to know how I can get (any) info about the active application? like the caption of the active application or pid.
[2 replies] Last: thx for the answer. (by stroem)
by maruf
merge sorting usnig process
 
Hello all... how can i implement merge sort using process in linux? i know fork should be used to create process.but how can i control the child process to wo...
[6 replies] Last: I think you are looking for this: std::stable_sort(my_data.begin(),... (by suokko)
by sever
Receiving all the message...
 
Hello, I'm working in an application which encrypts a chain (std::string) and sends it to another by a socket using the operator (<<). In fact, this other...
[2 replies] Last: I think Kbw has it - sometimes encryption will result in non-ASCII val... (by rascalcode)
how to make a time delay of a few seconds using C++
 
Hi, I am using ubuntu linux. How to make a time delay of a more than 30min using C++.
[7 replies] Last: Sorry for late reply #include <ctime> inline void mySleep(clock_... (by Denis)
by Disch
readdir: determining if file is a dir
 
If I'm using opendir+readdir to traverse the filesystem -- how can I tell whether or not the files provided by readdir are directories and not additional files?...
[3 replies] Last: The man page does explicitly say that the use of fields other than d_n... (by Duthomhas)
emacs quesiton
 
how do I enter gdb and run c files in emacs? I am very new to linux.
[1 reply] : No one has volunteered an answer to this question so I am going to ans... (by PanGalactic)
by vijkrr
how to create and maintain a thread pool class using C++
 
Hi all, please refer to this link http://en.wikipedia.org/wiki/Thread_pool_pattern this is what exaclt i want to implement in my C++ code. i have a li...
[2 replies] Last: http://code.google.com/p/cppthreadpool/downloads/list chk this out,... (by sdbala)
Just a few questons I have for a review sheet.
 
I have an exam later and have a few questions I would like to clarify my answers if anyone could give me their input. Thanks. 1. Write the definition for a ...
[3 replies] Last: 1. Wrong 2. Wrong 3. Wrong 4. a.) wrong b.) wrong c.) wro... (by firedraco)
May 2009 Pages: 12
  Archived months: [apr2009] [jun2009]

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