[LAU] rtmix compile errors

Robin Gareus robin at gareus.org
Fri May 18 05:21:54 EDT 2007


paul wisehart wrote:
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtmix-0.75rg.diff
Type: text/x-patch
Size: 1413 bytes
Desc: not available
Url : http://lists.linuxaudio.org/pipermail/linux-audio-user/attachments/20070518/583a4af4/attachment.bin 


More information about the Linux-audio-user mailing list