[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] ‘class uhd::usrp::m ulti_usrp’ has no member name
From: |
Josh Blum |
Subject: |
Re: [Discuss-gnuradio] ‘class uhd::usrp::m ulti_usrp’ has no member named xxx |
Date: |
Mon, 26 Mar 2012 20:04:09 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 |
On 03/26/2012 07:51 PM, Peng Wang wrote:
> I want to implement some functions in uhd::usrp::multi_usrp, and access these
> functions from gnu_uhd_usrp_source. Therefore, I modify the files as follows:
>
> 1. multi_usrp.hpp
> I define the function
> virtual void enable_rx_fhop(const bool enb, size_t mboard = 0) = 0;
>
> 2. multi_usrp.cpp
> void enable_rx_fhop(const bool enb, size_t mboard)
> {
> ...
> }
>
> Then, I go to folder uhd/host/build/ and compile the files. Everything is
> fine, and no error appears.
>
> 3. gr_uhd_usrp_source.h
> define:
> virtual void enable_rx_fhop_gr(const bool enb, size_t mboard = 0) = 0;
>
> 4. gr_uhd_usrp_source.cc
> void enable_rx_fhop_gr(const bool enb, size_t mboard)
> {
> _dev->enable_rx_fhop(enb, mboard);
> }
>
> When I compile the files, I get the following error message:
>
> gr_uhd_usrp_source.cc: In member function ‘virtual void
> uhd_usrp_source_impl::enable_rx_fhop_gr(bool, size_t)’:
> gr_uhd_usrp_source.cc:298: error: ‘class uhd::usrp::multi_usrp’ has no member
> named ‘enable_rx_fhop’
> make[5]: *** [gr_uhd_usrp_source.lo] Error 1
>
> As I said, I compiled the UHD successfully, and cannot understand why
> gr-source cannot find the functions. So, any suggestions? Thanks
>
Maybe its building against an old header. Did you install multi_usrp.hpp
to the include path?
-josh