C++

[prev] [thread] [next] [lurker] [Date index for 2003/11/13]

From: Simon Wistow
Subject: C++
Date: 15:29 on 13 Nov 2003
Actually it might just be gcc or g++ or C in general or maybe just my 
set up but I hate something. Possibly this is a PEBCAK situation, maybe 
I just expect stuff to work more like interpreted languages but ... 

So I'm writing a threaded C++/QT app. And it's all working fine. And I 
go to change something - no new functionality at the moment just putting 
in various variables that I'm going to need and initialising them in the 
constructor.

And the app segfaults.

So I start commenting out lines starting. And everytime it compiles fine 
but segfaults on start. Eventually I've copied out every line that I've 
put in. And it's still segfaulting. GDB claims that it's in a part of 
the program that I've never touched.

I try deleting all the files which I've updated and checking them out of 
CVS again. Still segfaults. 

Scratch head. 

% make clean; make 

Go away to get coffee. Wait 5-10 minutes. Come back. Works fine.

Grr. 

And it keeps happening. And make-ing clean appears to be the only way to
make sure it works.

Sigh.

Hate.



Generated at 14:02 on 01 Jul 2004 by mariachi 0.52