Mail Archives: djgpp/1997/01/18/10:14:54
I've come across a problem using DJGPP when compiling a C++ program. I
don't have a way to test the error on gcc under Unix, but I suspect the
problem is platform specific.
Upon compiling the attached program, gcc will abort with an internal
error if the following line is uncommented (first function, matrix.cc):
columns = new clsVector<T>[n];
I'm trying to allocate an n-element array of the template class
clsVector based upon the class T. (I'm still learning C++ so if there
is a problem with my syntax or something please correct me). A similar
line in another function also causes the same problem. The compiler
aborts with the internal error on the closing brace of the calling
function. Attached is a zip file with the relevant source files.
Thanks!
- Raw text -