Forum: GNU Radio Why nothing change after I modified some codes in C++ block and successfully compiled it?

Posted by Yingjie Chen (Guest)
on 2013-03-05 13:56
(Received via mailing list)
Hi guys,

Thanks in advance.

I have added some codes in c++ block, like *printf("i=%d\n",z);* for 
output
test. However, after I compiled the modified block *(.cc file)*and
generated the new  object file* (.cc.o file)*, nothing printed out from 
the
terminal, which means nothing changed in the original code. But actually 
I
did.  I feel so confused, hope everyone can help me.

The example I used is in 
*/home/k/src/gnuradio/gr-digital/examples/ofdm*,
and the file I modified is
/home/k/src/gnuradio/build/gnuradio-core/src/lib/gengen/*
gr_peak_detector_fb.cc*, which is one c++ block connected by ofdm 
example.

Best,
Kay.
Posted by Tom Rondeau (Guest)
on 2013-03-05 15:26
(Received via mailing list)
On Tue, Mar 5, 2013 at 7:54 AM, Yingjie Chen <ocgcyj@gmail.com> wrote:
> The example I used is in /home/k/src/gnuradio/gr-digital/examples/ofdm, and
> the file I modified is
> /home/k/src/gnuradio/build/gnuradio-core/src/lib/gengen/gr_peak_detector_fb.cc,
> which is one c++ block connected by ofdm example.
>
> Best,
> Kay.


You have to run 'make install' after rebuilding or the system will
just use the old installed libraries.

Tom
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.