discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Problem while doing make in making block


From: Martin Lülf
Subject: Re: [Discuss-gnuradio] Problem while doing make in making block
Date: Tue, 5 Feb 2013 15:48:05 +0100
User-agent: SquirrelMail/1.4.22

> On Sun, Feb 3, 2013 at 6:02 AM, Mohammed Ramadan
> <address@hidden>wrote:
>
>>
>> i am still face problem for making simple block in gnuradio
>>  i am using gr_modtool
>> i follow the steps
>> 1- creating the module ( named ramadan)
>> 2 adding the block(mm)
>> i have 2 files in lib (mm_imp.cc, mm_imp.hh) and one file in include
>> (mm.h)
>> i made changes in the 3 files like square example in tutorial, but while
>> building i face problem in make appears for me
>>
>> address@hidden:~/gr-ramadan/build$ make
>> Scanning dependencies of target gnuradio-ramadan
>> [  5%] Building CXX object
>> lib/CMakeFiles/gnuradio-ramadan.dir/mm_impl.cc.o
>> /home/el-hadidy/gr-ramadan/lib/mm_impl.cc:32:29: error:
>> howto_square_ff.h:
>> No such file or directory
>> /home/el-hadidy/gr-ramadan/lib/mm_impl.cc:39: error:
>> ?howto_square_ff_sptr? does not name a type
>> /home/el-hadidy/gr-ramadan/lib/mm_impl.cc:62: error: ?howto_square_ff?
>> has
>> not been declared
>> /home/el-hadidy/gr-ramadan/lib/mm_impl.cc:62: error: ISO C++ forbids
>> declaration of ?howto_square_ff? with no type
>> /home/el-hadidy/gr-ramadan/lib/mm_impl.cc: In function ?int
>> howto_square_ff()?:
>> /home/el-hadidy/gr-ramadan/lib/mm_impl.cc:63: error: only constructors
>> take base initializers
>> /home/el-hadidy/gr-ramadan/lib/mm_impl.cc: At global scope:
>> /home/el-hadidy/gr-ramadan/lib/mm_impl.cc:73: error: expected
>> constructor,
>> destructor, or type conversion before ?::? token
>> /home/el-hadidy/gr-ramadan/lib/mm_impl.cc:79: error: ?howto_square_ff?
>> is
>> not a class or namespace
>> /home/el-hadidy/gr-ramadan/lib/mm_impl.cc: In function ?int
>> general_work(int, gr_vector_int&, gr_vector_const_void_star&,
>> gr_vector_void_star&)?:
>> /home/el-hadidy/gr-ramadan/lib/mm_impl.cc:94: error: ?consume_each? was
>> not declared in this scope
>> *make[2]: *** [lib/CMakeFiles/gnuradio-ramadan.dir/mm_impl.cc.o] Error 1
>> make[1]: *** [lib/CMakeFiles/gnuradio-ramadan.dir/all] Error 2
>> make: *** [all] Error 2*
>> address@hidden:~/gr-ramadan/build$
>>
>> so , how can i solve this problem? can any one help me to fix this
>> problem
>> as i read more and still face problems. Thanks
>
>
> Again, this looks like a version problem. Except in this case, it looks
> like you have a really old version of GNU Radio installed before there was
> a consume_each (and I can't even remember how far back that was).
>
> Tom

To me it looks like there are some classname:: missing in the
implementation file, in which case the general_work is defined outside the
class and thus undefined (at least that's when I am seeing these errors).
Can you check/post your .cc code?

Martin




reply via email to

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