# Compiling error from a commit from yesterday

**URL:** <https://www.ruby-forum.com/t/compiling-error-from-a-commit-from-yesterday/235021>\
**Category:** GNU Radio\
**Created:** [May 26, 2013, 12:44pm UTC](https://www.ruby-forum.com/t/compiling-error-from-a-commit-from-yesterday/235021 "2013-05-26T12:44:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [May 26, 2013, 12:44pm UTC](https://www.ruby-forum.com/t/compiling-error-from-a-commit-from-yesterday/235021/1 "2013-05-26T12:44:59Z")

</div>

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’)  
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

---

<div class="post-metadata">

**Author:** ![Carles\_Fernandez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/3e96dc/32.png) [@Carles\_Fernandez](https://www.ruby-forum.com/u/Carles_Fernandez)\
**Post date:** [May 26, 2013, 2:32pm UTC](https://www.ruby-forum.com/t/compiling-error-from-a-commit-from-yesterday/235021/2 "2013-05-26T14:32:29Z")

</div>

On Sun, May 26, 2013 at 3:43 AM, Carles Fernandez \<  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

> 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.

Good catch, will fix shortly.

---

<div class="post-metadata">

**Author:** ![Carles\_Fernandez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/3e96dc/32.png) [@Carles\_Fernandez](https://www.ruby-forum.com/u/Carles_Fernandez)\
**Post date:** [May 26, 2013, 3:01pm UTC](https://www.ruby-forum.com/t/compiling-error-from-a-commit-from-yesterday/235021/3 "2013-05-26T15:01:42Z")

</div>

On Sun, May 26, 2013 at 5:30 AM, Johnathan C.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> 

This has been fixed, please test.

---

<div class="post-metadata">

**Author:** ![Carles\_Fernandez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/3e96dc/32.png) [@Carles\_Fernandez](https://www.ruby-forum.com/u/Carles_Fernandez)\
**Post date:** [May 26, 2013, 3:11pm UTC](https://www.ruby-forum.com/t/compiling-error-from-a-commit-from-yesterday/235021/4 "2013-05-26T15:11:03Z")

</div>

Now it works 🙂

Thanks Johnathan!

On Sun, May 26, 2013 at 3:00 PM, Johnathan C.
