UNIX/Linux Programming - June 2009

by lipune
core dump
 
Hi what is core dump and segmentation fault.in which condition these two are found.whats the method to solve this problem in UNIX or Linux environment. ...
[1 reply] : segfault occurs when you attempt to access a memory address that is no... (by jsmith)
*nix based events
 
How are most key events handled in linux? For instance, I'm wanting to create a temporary daemon that catches events from my laptops volume wheel and increases ...
[2 replies] Last: I don't want something based on X, especially since it's not needed. I... (by closed account S6k9GNh0)
Same sources compiled as shared lib segfault, process works fine.
 
Hello, I've got this strange problem that the same sources compiled as shared lib segfaults as soon as I try to access a list object but exactly the same sou...
[6 replies] Last: Well, I wish I could say it was brilliant, but it was more like "been ... (by jsmith)
by umanga
dlsym casting problem?
 
Hi guys, I am new to C++ and I have this casting problem with dlsym() (I use Debian Lenny) In the following code : #include "Snake.h" #include <dlfcn...
[2 replies] Last: Whoa... ok, firedraco's correct, but it's never going to work. I'm ... (by jsmith)
by Rufe0
Low level program to ream mjpeg stream
 
Hi all Well first I’ll just say I am a complete Linux beginner, but I have done vbs, js, php, html web type stuff so I’m not a complete beginner to program...
[no replies]
by jwang
Problem about math function - pow
 
I encounter this segment problem for the second line of the code. #include <cmath> const float dx = 1.0E-3, dy = 1.0E-3, dz = 1.0E-3; const float dt = 0.99...
[1 reply] : Break the formula down into multiple computations and verify that ever... (by PanGalactic)
by vijkrr
Error in executing web based C++ client.
 
Hi all, I'm new to web based C++ application. I'm trying to execute my client program, which is generated by gSOAP. It is giving the following error. Con...
[1 reply] : You should also try the gSOAP mailing lists. You're more likely to get... (by helios)
Seg Fault with fgets and fputs - Probably easy to fix, but I don't know how.
 
Here's my code: #include <stdio.h> #include <stdlib.h> #define size 768 int main() { char *listName = (char*) malloc(size); char *createLis...
[2 replies] Last: Never mind, I fixed it. I started using fscanf(); instead of fgets(); ... (by lazyrussian)
undefined pthread_create
 
I am new in "linux"... I try to work with threads but I can not pass after first compilation... coz g++ and gcc say undefined pthread_create... or something li...
[3 replies] Last: yes thank for all... 5 minutes after I post I find the key,, like say ... (by doomoller)
wxWidgets and GTK - difference
 
I'm trying to do some GUI programming and i was suggested wxWidgets. While reading a few pages i came across gtk. I don't know if i'm wrong, but as far as i c...
[2 replies] Last: A difference between wxWidgets and GTK is that wxWidgets is in C++, GT... (by Bazzy)
by lipune
unix command
 
Hi friend will you tell me,QN1- how to know the maximum size of a file in a file structure by using unix command.suppose in a directory there are 20 files h...
[1 reply] : 1. man ls - there is an option you want (by jsmith)
write from buffer to buffer
 
hey guys, i was hoping that there was a way to do an operation, like fwrite(), except instead of buffer to file, from buffer to buffer. for instance, you could ...
[3 replies] Last: If you are using C++, you can use the char_traits <> class instead of... (by Duthomhas)
key press on Linux C++
 
I'm writing a program in C++ under Linux that needs to wait for user to press a key. Considering the key pressed the program will go accordingly. So I must be ...
[6 replies] Last: See also Keep the console open long enough to see your program's out... (by Duthomhas)
Forward declaration with g++
 
In class filter.h, I have the following forward declarations template<class T> //Forward declaration due to circular dependency class Agc; class FixPt; c...
[1 reply] : error: invalid use of undefined type âstruct QuantizerCmplxâ Yo... (by Disch)
overloading operator<< in derived classes
 
Hey everyone, my first post in here. I'm having some serious problem with a program I'm making. I want to overload the <<, using ostream, and I'm having probl...
[16 replies] Last: EDIT: Nevermind, I've got it working, thanks. (by Hiromakuta)
by vijkrr
How to share a file between C++ and Fortran
 
Hi all, I'm facing a problem in C++ and Fortran. I want to write some statements into a common log file. Here it is. 1. Fortran opens a log file and write...
[1 reply] : The Fortran program would have to seek to the end of the file immediat... (by PanGalactic)
problems with a project.
 
Hi there. I'm programming this project that basically schedules several appointments in a clinic.I've divided the project in a few classes: appointments, sche...
[1 reply] : @ bobalberto: I'm afraid I can't help you much since I'm not sure what... (by closed account S6k9GNh0)
by sever
Insert blank "nodes" in a vectors of structures
 
Hello, I just declared an std::vector of an structure, like this, struct Elem } std::string sub1; std::string sub2; std::string sub3; ...
[3 replies] Last: If it compiles it will work. std::advance() is more generic, since ... (by jsmith)
Need to get the PID of a process
 
How do I run a process from a C++ program and obtain its PID? Right now I am doing in a "parallel" thread: system("ampl method.run"); and into the m...
[3 replies] Last: Use pgrep #include <stdio.h> #include <stdlib.h> #ifdef WIN3... (by anishsane)
Extern "C" problem
 
Hello, I'm a a pretty new programmer just beginning to play around with C and C++. I use Linux and am compiling with gcc/g++ 4.3.2 however I'm coming across ...
[5 replies] Last: melkiy: I managed to solve the problem - I had included a C++ heade... (by CodeBugs)
June 2009 Pages: 12
  Archived months: [may2009] [jul2009]

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