discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Compiling error from a commit from yesterday


From: Carles Fernandez
Subject: [Discuss-gnuradio] Compiling error from a commit from yesterday
Date: Sun, 26 May 2013 12:43:45 +0200

Hi there,

I pulled the next branch and tried to compile it on Mac OS X 10.8.3 with clang++. I've found this error:

...
[ 62%] Building CXX object gr-analog/lib/CMakeFiles/gnuradio-analog.dir/quadrature_demod_cf_impl.cc.o
/Users/carlesfernandez/gnuradio/gr-analog/lib/quadrature_demod_cf_impl.cc:67:21: error: variable length array of non-POD element type
      'gr_complex' (aka 'complex<float>')
      gr_complex tmp[noutput_items];
                    ^
1 error generated.
make[2]: *** [gr-analog/lib/CMakeFiles/gnuradio-analog.dir/quadrature_demod_cf_impl.cc.o] Error 1
make[1]: *** [gr-analog/lib/CMakeFiles/gnuradio-analog.dir/all] Error 2
make: *** [all] Error 2


This error was introduced by revision beb44631, since it was not present before. It seems that in standard C++ the length of the array needs to be a compile time constant, maybe a vector could be used there.

Best regards,
Carles




reply via email to

[Prev in Thread] Current Thread [Next in Thread]