A sugestion... or not since your gcc is a bit old.. send your source to gcc bugzilla. Let's see if that bug has already, or not, been corrected.
A sugestion... or not since your gcc is a bit old.. send your source to gcc bugzilla. Let's see if that bug has already, or not, been corrected.
I found that the seg fault occurs because of the function call, not because of the assignment. I changed it a bit so that:
This causes the compiler to crash still.Code:double buffer = Score(actual, data);
I find these statements at odds.Originally Posted by Buckshot
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
Whoa, thanks. Its supposed to be passed by reference. Missed the '&'.
Thanks!
However, I'm still getting the seg fault.
The declaration was supposed to be:
Code:double Score(AEE &addeff, datavar &data);
Last edited by Buckshot; 06-16-2005 at 09:40 AM.