On Fri, May 18, 2007 at 04:23:36AM +0000, Josh
Lawrence wrote:
...
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/X11R6/include
-DQT_THREAD_SUPPORT -D_REENTRANT -O2 -fno-exceptions -fno-check-new
-c mathexpr.cpp
mathexpr.cpp: In function `void SimplifyStr(char*&)':
mathexpr.cpp:435: error: ISO C++ forbids initialization in array new
...
On line 435 of mathexpr.cpp there is:
s=new char[1](0);
thats not valid c++, but it seems to compile in 3.3 but not 3.4.
attached patch makes rtmix compile w/ gcc4.1 and QT3.3.7
% cd .../rtmix-source/
% patch -p1 < /tmp/rtmix-0.75rg.diff
#robin