Re: [LAU] rtmix compile errors

From: Robin Gareus <robin@email-addr-hidden>
Date: Fri May 18 2007 - 12:21:54 EEST

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

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-user

Received on Fri May 18 16:15:02 2007

This archive was generated by hypermail 2.1.8 : Fri May 18 2007 - 16:15:02 EEST