From: Dmitry B. <db...@ma...> - 2001-06-25 13:37:56
|
Leonardo Orazi <leo...@ti...> writes: > I am attempting to compile sample projects from Qtlibraries on Windows > NT4 using tmake. > Every example i try to compile receive an error like this: > ....................................... > gcc -c -fvtable-thunks -O -DNO_DEBUG -I"d:/Qt/include" -o aclock.o > aclock.cpp > d:\Qt\include\xxxxxxxxxx.h:##: Internal compiler error, > output_operand_lossage `invalid expression > as operand' > > > and the file xxxxxxxxxxx.h contain at line ## a statement like this: > template class Q_EXPORT QArray<QPoint>; > > Is the statement "template class" supported by mingw32 with gcc 2.95.2. IMHO this statement is not legal from C++ point of view (although the compiler should not give up anyway, just return an error). Maybe these headers should be preprocessed by some Qt tool before? BTW, mingw does not affect gcc compiler itself -- just replaces startup code and runtime libraries. So you problem has nothing to do with mingw. Try to ask Qt people for help ... Hope to hear from you soon, Dmitry |