Understanding c++ code

I installed GNU RADIO from this link
http://blogs.bu.edu/mhirsch/2012/07/installing-gnu-radio-in-ubuntu-12-04-x64/comment-page-1/
I want to test some blocks & see their output to understand them more
and
more.
for example I opened additive_scrambler_bb c++ codes in terminal to
understand but I want to see how some parameters change in code when
running it .
how to output these parameters in terminal ? Can I write in code “cout”
like any c++code?
And do I have to build gnuradio again even if I will erase all my
modifications in code (I don’t want these modifications permanently I
want
only to output all parameters to understand the block)

I did the following:
editing it using vim ./additive_scrambler_bb_impl.cc
running it to see the output on terminal using
./additive_scrambler_bb_impl.cc

but when I ran it in terminal I got this message:
bash: ./additive_scrambler_bb_impl.cc: Permission denied

Thanks

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Sara,

C++ is a compiled language; you can not execute a source code file.
You have to recompile the file by rebuilding GNU Radio.
additive_scrambler_bb_impl.cc contains the implementation of the
additive_scrambler_bb block, it is not itself executable.
You need to have a flowgraph containing that block to test your
modified version.

I think you should start with a basic C++ tutorial before you try to
understand and modify GNU Radio’s C++ codebase – these are very basic
concepts you are missing.

Greetings,
Marcus

On 12.04.2014 16:18, Sara C. wrote:

I installed GNU RADIO from this link

http://blogs.bu.edu/mhirsch/2012/07/installing-gnu-radio-in-ubuntu-12-04-x64/comment-page-1/

I want to test some blocks & see their output to understand them more
and

terminal using ./additive_scrambler_bb_impl.cc
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTSVj7AAoJEBQ6EdjyzlHtlbIH/2x5VnHdYtdVwcVyo6eOQXwd
G56c6M94Hv0IjCaGLegIBIzXvahSzU9Iy6YEg4SyY0OHMgvVMQOqILVIoEqpT6XW
mo+iQRUNTeIvHth2jdH+mhV3S4F50+VJNJ6N7vTqwLIBbneutOlCh1ltUbCTXnCc
P2BuwctfZssutb1AeYyTFQ1/pOimpIBVicrKrVh8Fe7H+6NEiP4c3YljRWJtbU+T
td5qG4WJVsxU3+tpP4PaxZ15x3KS8dfqYAQUL5UzmrpRaob1GbIgkNYtdVgER/6y
Pi3YeFwStPFnBzTO+X/wzr9YjC/wRqXF4bA2ZwKsTs/ws6nXfXPXsFo5V/iSeFs=
=GESY
-----END PGP SIGNATURE-----

How to rebuild gnuradio after I changed in c++ codes ?
Note:
I installed GNU RADIO from this link
http://blogs.bu.edu/mhirsch/2012/07/installing-gnu-radio-in-ubuntu-12-04-x64/comment-page-1/

2014-04-12 17:17 GMT+02:00 Marcus M. [email protected]:

how I can re-build digital library only after making changes in c++ code
of
a block… not re-building the whole gnuradio

I installed GNU RADIO from this link
http://blogs.bu.edu/mhirsch/2012/07/installing-gnu-radio-in-ubuntu-12-04-x64/comment-page-1/

2014-04-13 0:55 GMT+02:00 Sara C. [email protected]:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Sara,

You have to have a full source tree lying around, where you modify the
code.
Then you follow the official wiki’s guide on how to build from source:
http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide

Greetings,
Marcus

PS: I’ve mentioned that already, but let me say this once again:
gnuradio.org is the only source of information that’s not likely to
outdate.

On 13.04.2014 01:02, Sara C. wrote:

How to rebuild gnuradio after I changed in c++ codes ? Note: I
installed GNU RADIO from this link

http://blogs.bu.edu/mhirsch/2012/07/installing-gnu-radio-in-ubuntu-12-04-x64/comment-page-1/

2014-04-12 17:17 GMT+02:00 Marcus M. [email protected]:

You need to have a flowgraph containing that block to test

http://blogs.bu.edu/mhirsch/2012/07/installing-gnu-radio-in-ubuntu-12-04-x64/comment-page-1/

I want to test some blocks & see their output to understand them more
and

./additive_scrambler_bb_impl.cc running it to see the output
on terminal using ./additive_scrambler_bb_impl.cc

but when I ran it in terminal I got this message: bash:
./additive_scrambler_bb_impl.cc: Permission denied

Thanks
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTSi5zAAoJEBQ6EdjyzlHtF3cH/RiYAcNGstQDkd75sPGn/5Ow
f7fKpkMZwxvp3rcbtTTda5DPiwEtvxO1yfajiuyRt3/Ono4qDPhoqcCVdY15HlnM
NvM1LwjbMXHGH0XQJKa+0ICOW3mCzf2L6Z+1BemyF+tlk3cVX2QwD3aGPN9i8BQ4
7R/BsDCI08wQ1OhGXM1CSJW5MpTyKsrbgjnZAV6+CvLvbSl3Bp2lBkiZvYmvYqJH
lWNGfGaC3LvrIOWL9v0Mov2zl1WVXBxqGZzbhJ5v2GExMBj9vdAr7s/TZCliV7/a
n0LPjEu2cf5rwI9PQeqqrx1NRZkmf7AFOAv2P+n6CJRC74mijNAlbQkg69luzTo=
=BJuE
-----END PGP SIGNATURE-----

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs