discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Some fairy C++ error in gr-filter


From: Gisle Vanem
Subject: [Discuss-gnuradio] Some fairy C++ error in gr-filter
Date: Fri, 7 Feb 2014 11:50:12 +0100

Hi list. My 1st post here.
I have a big problem with CMake and some of the generated
files under gr-filter/lib. E.g. here is a snippet from it:

#include "fir_filter_ccc.h"
#include <gnuradio/io_signature.h>
#include <volk/volk.h>

namespace gr {
 namespace filter {
fir_filter_ccc::sptr
   fir_filter_ccc::make(int decimation, const std::vector<gr_complex> &taps)
   {
     return gnuradio::get_initial_sptr(new fir_filter_ccc
    (decimation, taps));      ///  <<< line 40
   }

At line 40 my g++ 4.7.2 starts yelling w/o me understanding what it says.
Here is the 1st error (edited):

fir_filter_ccc_impl.cc: In static member function 'static 
gr::filter::fir_filter_ccc::
 sptr gr::filter::fir_filter_ccc::make(int, const std::vector<std::complex<float> 
>&)':
fir_filter_ccc_impl.cc:40:23: error: cannot allocate an object of abstract type
 'gr::filter::fir_filter_ccc'

What's this? Is this because 'FILTER_API' is an dllexport? Or is my fir_filter_ccc_impl.cc generated incorrectly? What is that file and fir_filter_ccc.h supposed to look like?

Some info for you: 'g++ -fconserve-space -c -DDEBUG -g -O1 -Wall' ..etc.

Thanks in advance.

--gv




reply via email to

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