Hi Josh, I've been playing around with this block and indeed it was missing in the .i file <extras_swig.i>. I included as:
%include "extras_swig.i" //add on 21 Sept %include "extras_blobs.i" //add on 21 Sept <-- I added this line also Also, I tried to change other parameters, but the problem still there. The error is: asrp_swig.cc: In function 'PyObject* _wrap_asrp_test_temporal_sptr_detail(PyObject*, PyObject*)': asrp_swig.cc:8800:25: error: 'class asrp_test_temporal' has no member named 'detail' asrp_swig.cc: In function 'PyObject* _wrap_asrp_test_temporal_sptr_set_detail(PyObject*, PyObject*, PyObject*)': asrp_swig.cc:8852:16: error: 'class asrp_test_temporal' has no member named 'set_detail' I thought that I could remove the lines 8800 and 8852 in asrp_swig.cc for the variables that is complaining about (detail and set_detail). However, it does not compile anymore if I tried this option. Thanks for your help, Regards, Jose. On Fri, Sep 21, 2012 at 5:37 AM, Josh Blum <j...@ettus.com> wrote: > > > On 09/20/2012 03:28 AM, Jose Torres Diaz wrote: > > Hi Josh, > > > > I checked the code again. I am almost there, at this stage I don't get > any > > error using gnuradio::block in my .cc file (see below): > > > > : gnuradio::block ("test_temporal", > > gr_make_io_signature (0, 0, 0), //This is a source - no inputs > > gr_make_io_signature(0, 0, 0), > > msg_signature(false, 1)) > > > > and I changed the work function in the following way: > > > > int asrp_test_temporal::work (const InputItems &input_items, > > const OutputItems > &output_items) > > > > However, when I compile this block, I am getting some errors with the > swig > > file, which points out that my defined class has no member named 'detail' > > and 'set_detail'. The errors is shown below: > > > > asrp_swig.cc: In function 'PyObject* > > _wrap_asrp_test_temporal_sptr_detail(PyObject*, PyObject*)': > > asrp_swig.cc:8800:25: error: 'class asrp_test_temporal' has no member > named > > 'detail' > > asrp_swig.cc: In function 'PyObject* > > _wrap_asrp_test_temporal_sptr_set_detail(PyObject*, PyObject*, > PyObject*)': > > asrp_swig.cc:8852:16: error: 'class asrp_test_temporal' has no member > named > > 'set_detail' > > > > Looks like swig is trying to understand the boost shared pointer stuff. > I usually never see this so you might be missing an include in the .i file. > > Make sure you have %include<gnuradio.i> and %include<extras_swig.i> > > -josh >
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio