UNIX/Linux Programming - October 2010

segmentation problem
 
I am having problem with the code below. I am usin g++ in linux to compile it. It is showing segmentation error for the input in the form 12/10/1199 I am not ...
[1 reply] : You need to make some general fixes to the code. You need to get rid ... (by Athar)
by SD14
undefind refrence to when using templates
 
When I try and compile my my files the compiler keeps telling me i have an undfiend refrence to a my templates when i give them a type i dont know why it would ...
[8 replies] Last: wow cant believe that i forgot to define those thanks Galik (by SD14)
by aatwo
Communicating with PCI device
 
Hi guys. I am trying to communicate with a PCI device from within my C++ application, however I am having a nightmare with all this Kernel space and user space ...
[1 reply] : User space programs communicate to hardware through kernel device driv... (by PanGalactic)
by ubfree
mmap with /proc-file in kernel-mode
 
Hi there, I have troubles with mmapping a created /proc-file in the kernel-mode. The file-creation is working fine, and I have written all the needed functio...
[3 replies] Last: How is this a C++ question? Shouldn't you be asking this on the LKML? (by PanGalactic)
Validate file paths? Where to place logs?
 
I've been working on a program, with Disch's help, that is basically a work-around for a problem I'm having with my laptop. It's nearly complete and all I've le...
[6 replies] Last: Thank you all very much. I've decided the log, by default, would be a ... (by LupusNoctu)
boost format question
 
I need to format a string so that it is only a certain amount of characters long. I have a function that returns an float which can be any number at all. e....
[4 replies] Last: Sorry, didn't see this thread. I answered here: http://www.cpluspl... (by jsmith)
Create child under different uid and capture stdin and stdout
 
I am fairly new to process management in Linux however quite familiar with it in Windows. My goal is to create a daemon that will start a game server (such a...
[1 reply] : You should get yourself a copy of "Advanced Programming in the Unix En... (by PanGalactic)
by firix
code error
 
Hi, why this code does not work? class Name { char *mp; int mlen; public: Name(const char *pname) : mlen(strlen(pname)), mp(new char[mlen + 1]) ...
[1 reply] : Please don't double-post http://www.cplusplus.com/forum/beginner/30565... (by Bazzy)
by tomD
CC Compiler & Orbix migration
 
Hi, The following migration is in progress. CC Compiler(C++) from 4.2 to 5.9. Orbix 3.3.1 to 3.3.9. OS : Solaris 10 Scenario: Trying to test if the old...
[4 replies] Last: kbw, he's a bad spot because the Sun Workshop 4.2 compiler has not bee... (by PanGalactic)
Segmentation error in struct/arrray?
 
Long story short, I am a Programming II major. We are compiling and writing these programs using an SSH client... We have to retrieve data from a data file, ...
[1 reply] : Suggestions: 1. Use code markers so your post is formatted. 2. I... (by kfmfe04)
Question about ofstream & ifstream in Ubuntu
 
Hello. I use Eclipse C/C++ in Ubuntu 10.04 to develope my program. but I found it different to operate files in Linux from in WindowsXP. here is part o...
[1 reply] : There really is no need to use Eclipse unless you want to. In any *... (by kfmfe04)
by firix
linux an unix programming
 
Hi unix and linux programming, How do I start.What should I do first.What advice to me that to improve my.
[2 replies] Last: ok. thanks. (by firix)
How to use Shell Script to run my C program for different initial values
 
Hi all I run my program prog.c in the following way : $ ./prog 1 > output.txt where 1 is a user defined initial value used by the program. B...
[3 replies] Last: AFAIK in the script output$a output'$a' output"$a" --- resu... (by Bazzy)
by abcxyz
using EzWindows
 
where do i get information about using graphics?
[3 replies] Last: i want to get the max x distance and max y distance of the window i op... (by abcxyz)
Getting all of the MAC addresses of a computer
 
Hi! I would like to ask for help with getting all the MAC addresses of a computer. I just need a "hello world!" type program, wich lists the mac addresses. Any...
[9 replies] Last: Quite a bit of both... I have done some driver development and underst... (by jsmith)
by SD14
Invilad types 'double[int]' for array subscript
 
So i am trying to make a program that will take in employee info and then display it out but i am stuck at this error Employee.cc: In member function ‘vo...
[1 reply] : You are trying to assign hours to hours because a function param... (by Null)
call main of a header file
 
in my header file there is a function which is called in main. i want to call main in another file, how can do this?
[1 reply] : In C++ you are not allowed to call main (by Bazzy)
by mord
pthread_cond_timedwait too slow...
 
I have a general question about POSIX thread method: I want to implemented absolute wait... so I wrote this method: void wait(int msToWait) { pth...
[6 replies] Last: My original intention was to imitate Java Object.wait(int) and Object.... (by mord)
Need guidance on starting with UNIX
 
Hi guys, I am an EE with some C programming experience in DSP(always in windows environment). I am currently making the transition to working with C++ in unix...
[15 replies] Last: I also choose pdksh. I recently discovered mksh is the inheritor of ... (by bigearsbilly)
Log filteration of linux log
 
Hi, I am working in one application which is written in c++ with millions lines of code with linux enviroment. They provide all logs in logs file during invok...
[3 replies] Last: grep? (by kbw)
October 2010 Pages: 123
  Archived months: [sep2010] [nov2010]

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