Error while running gr-modtool

Hi all,

I’m trying to add new module following the tutorial in
http://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules”.
But when building I got these errors:

[ 5%] Building CXX object
lib/CMakeFiles/gnuradio-testmod.dir/testbloc_impl.cc.o
/home/utilisateur/Documents/GnuradioInstall/gnuradio/gr-testmod/lib/testbloc_impl.cc:
In constructor
?gr::testmod::testbloc_impl::testbloc_impl()?:
/home/utilisateur/Documents/GnuradioInstall/gnuradio/gr-testmod/lib/testbloc_impl.cc:42:30:
erreur: expected primary-expression before ?<? token /home/utilisateur/Documents/GnuradioInstall/gnuradio/gr-testmod/lib/testbloc_impl.cc:42:32: erreur: ?MIN_IN? was not declared in this scope /home/utilisateur/Documents/GnuradioInstall/gnuradio/gr-testmod/lib/testbloc_impl.cc:42:39: erreur: expected primary-expression before ?>?
token

Any idea?

Nada

On Tue, Apr 23, 2013 at 10:16 AM, Nada ABDELKADER <
[email protected]> wrote:

In constructor ?gr::testmod::testbloc_impl::**testbloc_impl()?:
Any idea?

Nada

Hey Nada,

It sounds like you didn’t change the in/out port sizes. Look at line 42,
change anything surrounded by <+ foo +>. The bracket/plus sign is just
there as a hint of what the code should look like and you need to
replace
it with real code.

You should end up with something that looks like the first code segment
of
the “C++ code (part 1)” section of the tutorial you linked.

On Tue, Apr 23, 2013 at 12:22:26PM -0500, Nathan W. wrote:

[  5%] Building CXX object lib/CMakeFiles/gnuradio-testmod.dir/
testbloc_impl.cc.o
/home/utilisateur/Documents/GnuradioInstall/gnuradio/gr-testmod/lib/
testbloc_impl.cc: In constructor ?gr::testmod::testbloc_impl::testbloc_impl
()?:

[…]
It sounds like you didn’t change the in/out port sizes. Look at line 42, change
anything surrounded by <+ foo +>. The bracket/plus sign is just there as a hint
of what the code should look like and you need to replace it with real code.

Also, you got the error while running ‘make’, not while running
‘gr_modtool’.
Just saying.

MB


Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin B.
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT – University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association

Hi,

Yes Martin, you’re right. Sorry for the mistake.
Thank you Nathan for help.

Regards,
Nada

“Martin B. (CEL)” [email protected] a crit: