UNIX/Linux Programming - August 2010

by okit
wxWidgets Errors
 
I have just installed minGW and unzip the wxWidgets-2.8.11 zip file. I am not sure what to put in the env variable.I took a hello world example online and then ...
[9 replies] Last: The problem is that you modified the PATH variable in Settings -> Buil... (by eranif)
by declan
Why doesn't the OS use all my CPU?
 
I'm running a fairly resource intensive program. My machine has two processors. It runs Mac OS X. My program is doing multiprocessing using OpenMP. If I look in...
[3 replies] Last: Ok, but that's what I'm saying. I know the OS needs a bunch of CPU. Bu... (by declan)
using fork in a shared object.
 
Hello all, I am developing application which uses a shared library. For some reasons main application process duplicates. When investigated, we figured out t...
[1 reply] : 1. No 2. Yes (by kbw)
File save time
 
Hello All, I need to get "time of first save" of a file. Which system/library calls can be used. I cannot use stat since linux modifies the access time when ...
[2 replies] Last: Thank you Athar for comment. (by nkumar85)
unix programming (1,2,3)
 
write a program in unix which display a following pattern 1 01 101 0101 10101
[43 replies] Last: No this was a language that is compiled into machine code. (by Seraphimsan)
how to skip dirs that are mounted twice?
 
Hello. I need to list a directory recursively but I want to skip subdirs that were already mounted. There are 2 cases: a) a filesystem was mounted twice, lik...
[8 replies] Last: I would use popen(MOUNT_CMD) to read in the list of mounted director... (by PanGalactic)
Read write to SD card from Linux C program
 
hi, I would like to read and write files from / to SD card. I already have a driver for my SD card but I need to call it from user space. Could someone kn...
[3 replies] Last: Just open the file. I presume the SD Card's already mounted. (by kbw)
cygwin socket programming
 
Im working with creation of server client tcp in c.I have a code which works fine in linux but when the servertcp.c is compiled in windows using cygwin it compi...
[3 replies] Last: I guess you need to look at how it's being built. (by kbw)
linux program question
 
1. Design a procedure which is called sortwords.c, declare a very great array, reads every one in characters shelf words1.txt in the element which enter the ar...
[1 reply] : You should use strings and filestreams. Check out the manual on fstrea... (by Kyon)
Libnotify with image ?
 
Is this possible? This is the code: #include <libnotify/notify.h> #include <stdio.h> #include <unistd.h> int main() { NotifyNotification *n; ...
[no replies]
absolute path (ip) of mounted networked drive
 
hi, i am currently working on a project where the state of a program can be stored and the stored "state file" can be loaded so the next user can get to the ...
[2 replies] Last: I recommend against using a file for this. Use a transactional servic... (by PanGalactic)
by jimmbo
Linux version of NUMBERFMT
 
Hi All! I have run into a roadblock in a Linux (and Mac) port of a Windows app. I have a nice class designed around the Windows NUMBERFMT api, but can't fin...
[1 reply] : I've not heard of this API; but it doesn't sound like something very c... (by chrisname)
by ruka
Are there any Financial application Programers
 
Hi, Are there any financial application programmers here (C++). I mean people developing Automated Trading Systems. I need some help in getting some certi...
[1 reply] : Try posting in the "Lounge" (by JRevor)
Is there an alternative to getpass?
 
for concealing password input since the man page indicates that it is obsolete
[1 reply] : I'm not sure of an alternative, but I have nothing to do, so here's o... (by chrisname)
Tutroials?
 
Hey Im looking for some linux specific tutorials. I mostly just want some tutorials on gui.
[1 reply] : You need to choose a GUI toolkit (unless you want to create your own),... (by Athar)
by amma
Quick system() question
 
I have a program which calls vim, allows the user to edit a file, and then returns to the program. For the moment I just to system ("vim new") but this produces...
[2 replies] Last: Please don't use the system() function; if you want to know why (and y... (by chrisname)
Would this work?
 
Would this code(if compiled in gcc) work? #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main(){ srand((unsigned...
[5 replies] Last: woops ill fix that right up soon (by Legendman3)
by GnG
Problems with pointers
 
Hi all, I don't know much about pointers, so please, what am I doing wrong?! I have a class B: vector<int> lstInt; void run() { // here all my thre...
[3 replies] Last: Could you post the complete two classes (by mIXpRo)
by plan c
Tiny XML link error
 
I'm trying to compile a small program using Tiny XML: #include <iostream> using namespace std; #define TIXML_USE_SDL #include <tinyxml.h> void printNo...
[no replies]
by k3nt
Continuing after using execl() to start a script
 
Hey, So I have a shell script that I am calling with execl(). The script starts up 5 instances that are required by my c++ code and it has exit 0 at the end....
[4 replies] Last: You can redirect the output of the child process to your program, then... (by jsmith)
August 2010 Pages: 123
  Archived months: [jul2010] [sep2010]

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