[Discuss-gnuradio] Why nothing change after I modified some codes in C++ block and successfully compiled it?

2013-03-05 Thread Yingjie Chen
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.
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Why nothing change after I modified some codes in C++ block and successfully compiled it?

2013-03-05 Thread Tom Rondeau
On Tue, Mar 5, 2013 at 7:54 AM, Yingjie Chen ocg...@gmail.com wrote:
 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.


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

Tom

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio