Original Post
Hi, I am making a software renderer for a school project. I have this really wierd/anoying problem: If I declare an array in one of my *.h files and compile I suddenly get a segmentation fault (using g++ in unix), even though I dont actually use the array anywhere in my code. If I then delete all the *.o files and recompile, everything works perfect again. If I compile one more time the segmentation fault returns...doh!? I´ve had sort of the same problem in another project of mine (in DirectX)where i declared a new matrix and then the head of my animated .x model would disappear...I never solved that either. I really hope somebody can help me out here. I am really curious to what can cause this...must be some memory allocation problem...any ideas? Best regards, Klaus