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

2014-02-07 Thread Gisle Vanem
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 
#include 

namespace gr {
 namespace filter {
   
   fir_filter_ccc::sptr

   fir_filter_ccc::make(int decimation, const std::vector &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 
>&)':
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


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


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

2014-02-07 Thread Tom Rondeau
On Fri, Feb 7, 2014 at 10:50 AM, Gisle Vanem  wrote:
> 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 
> #include 
>
> namespace gr {
>  namespace filter {
>   fir_filter_ccc::sptr
>fir_filter_ccc::make(int decimation, const std::vector &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 >&)':
> 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


OS? GNU Radio version?

Tom

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


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

2014-02-13 Thread Tom Rondeau
On Mon, Feb 10, 2014 at 5:13 AM, Gisle Vanem  wrote:
> "Tom Rondeau"  wrote:
>
>> OS? GNU Radio version?
>>
>
> On Win-XP SP3 + GR version stright from the git-repo (in case it
> matters, but I doubt it). The C++ errors are on generated code
> and AFAICS, the OS is not a variable in this case. But maybe the
> '__declspec(dllexport)' could be an issue.
>
> Thanks for answering.
>
> --gv

No, the error you are showing doesn't really make any sense. But you
also gave us a set of g++ arguments that are not what we would
normally use in GNU Radio. Are you trying to compile this by hand and
not use the cmake/make build system?

Tom



>> On Fri, Feb 7, 2014 at 10:50 AM, Gisle Vanem  wrote:
>>>
>>> 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 
>>> #include 
>>>
>>> namespace gr {
>>>  namespace filter {
>>>   fir_filter_ccc::sptr
>>>fir_filter_ccc::make(int decimation, const std::vector
>>> &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 >&)':
>>> 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
>
>

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio