UNIX/Linux Programming - January 2010

Segmentation fault ?? Where my error checker ??
 
i started getting Segmentation fault trying to understand why. i tested it down to my drawtext function in my graphic core but i don't see what i'm doing wro...
[2 replies] Last: I fiqured it out . I was freeing objects that i thought i had too. Poi... (by DrakeMagi)
{Beginner}{G++} Having problem using a string in if statement
 
Here is a simple program. #include <iostream> #include <string> using namespace std; int main() { string test; cout<<"Enter a stri...
[6 replies] Last: It may work on some compiler but it shouldn't From C++ standard ยง3.6... (by Bazzy)
{Beginner}{G++} Having problems with some "char"s
 
I have written this program which demonstrates how to access files using C++. But when I compile it (using g++) I get a few errors which are out of my understan...
[9 replies] Last: Got it... I think structmem.c_str() works without #include <cstring... (by madmaxsantana)
1 line of code doesn't work but compile find
 
I made another class function to add tick and it works fine. it does not work here but the call function does. did i miss something. my vector<Core> sCore; i...
[12 replies] Last: i thought vector hold the value. But i don't understand why it don't w... (by DrakeMagi)
looking for a more definitive guide to gtkmm
 
I've been reading a gtkmm documentation. I don't like it that much. I'm going to continue reading it, but I would like to have something that is a bit easier to...
[2 replies] Last: try http://library.gnome.org/devel/gtkmm-tutorial/unstable/index.html... (by DrakeMagi)
Having problems with using gtk
 
Hey, I'm having problems with compiling simple code with my gcc compiler for c++. This is the code I'm trying to compile. #include <gtk/gtk.h> int...
[5 replies] Last: sorry! --cflags i forgot the s (by DrakeMagi)
by over9k
Finding docs for #include Directives
 
I'm poking around in some source of applications, and realized that I need more information on the includes to better understand what is going on. i.e.: #i...
[1 reply] : I would try checking the man pages first. (by firedraco)
by faust
Compiling errors and using Cmake Set Policy
 
Hello, I'm new to the world of compiling in Linux and I thought this is the best place to ask questions! I discovered the project I'm trying to compile h...
[1 reply] : This would be best asked on the cmake mailing list: http://www.cmake.o... (by PanGalactic)
Does POSIX Pthreads run in user space or kernel space?
 
as above?
[6 replies] Last: All pthreads libraries I am aware of (linux threads, NPTL) use kernel-... (by jsmith)
creer un processus sous linux - c++ ; helllpppp!
 
heyyyyy ! est ce qu il y a qlq un peut m expliquer comment on cree des processus dans linux en c++ ( a partir du pere on va creer jusqu'a 5 generation ) puis ...
[5 replies] Last: ok that's good but i have a question suppose we have a father process ... (by ahmakki)
Which code is faster
 
Hello All, This is my first post in the forum. I have following two sample codes written in Linux. Both of them print the network interface names of the l...
[5 replies] Last: So it #2 which is faster and reliable ! Thank you PanGalactic, jsmi... (by nkumar85)
Linux IDE
 
I'm a windows user and new to c++. But would like to switch to Linux. Is there any IDE that I can use for c++, vb.net java, and ASP.
[8 replies] Last: PanGalactic. Thanks for the advise and probably I will do dual boot f... (by ahbrahim2)
function localtime tm_isdst error?
 
I have with C this program: #include <stdio.h> #include <stdlib.h> #include <time.h> #include <errno.h> #include <string.h> int main (int argc, char...
[1 reply] : Please edit your post and put your code in [ code ] tags. (by PanGalactic)
read char without pressing enter
 
well, i have a while-loop. and the user enters some chars for some different options. Right now i'm storing the char in a variable with "charVariable = getch...
[4 replies] Last: Close! Good job! http://www.cplusplus.com/forum/articles/7312/#msg337... (by Duthomhas)
create process in linux !!!!
 
heyy ! i need someone to explain for me how do we create a process ( we start from a father pid 1 then we will create 5 generation : firt generation pid 11 and ...
[1 reply] : The Process Identifier is passed back to you from fork(), you don't ge... (by kbw)
Is it difficult to programme networking protocols?
 
I'm looking at protocols like the Aloha protocol at the MAC level. How hard is it to programme such protocols (lets say in C language) for real life working dev...
[1 reply] : It depends on how much experience with such things. If you have none,... (by kbw)
file and cin.getline
 
hi i got a problem. i'm writing a tool that generates xml files with data, but the only input that works is regular cin, and i need to use cin.getline() here'...
[4 replies] Last: thank you for the help! it works now! (by knoglefar)
"mi_cmd_var_create: unable to create variable object"
 
Hi, Just wonder whether this is a bug of GDB? I'm trying the debug my project and would like to watch one of the member variables "m_iFrames" can not be...
[2 replies] Last: Current class looks very easy. class CObjectDetection : public Q... (by jiapei100)
restrict
 
The restrict keyword in not standard in C++. In g++, __restrict or __restrict__ can be used. But I don't understand which. I found code examples using __restric...
[5 replies] Last: http://gcc.gnu.org/onlinedocs/gcc/Restricted-Pointers.html (by kbw)
tcp hdr length
 
Hello, thats my first topic here i hope my problem is pretty simple and you'll be able to find solution. So thats my problem: its tcpdump of eth card after...
[no replies]
January 2010 Pages: 12
  Archived months: [dec2009] [feb2010]

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