Hi Kerry, you normally don't start by modifying existing blocks. You don't seem to be familiar with C++ development: C++ source code is not directly executed; you will need to compile GNU Radio including the changed source code, and install it again.
Also, gr_uhd_usrp_source.cc is definitely from a very outdated version of GNU Radio. You should use a more modern GNU Radio. My feeling is that you should not modify C++ source code as a beginner in GNU Radio development. I *strongly* recommend the guided tutorials; they show you how to achieve the things you want fast, and they are a quick, and mostly /fun/ thing to read :) https://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorials Best regards, Marcus On 06.01.2016 20:30, kerry wrote: > Hi,all: > > I had ran uhd_fft.py successful. Now I want to modify the c++ source code in > "gr_uhd_usrp_source.cc". I read the uhd_fft.py code found parameter setting > through called set function(eg:set_center_freq()) in > "gr_uhd_usrp_source.cc". But when I modify the code it not execute the > "gr_uhd_usrp_source.cc" file. I don't know why? > > Look forward to your reply. > > Thx > Ke > > > > -- > View this message in context: > http://gnuradio.4.n7.nabble.com/modify-c-source-code-tp57674.html > Sent from the GnuRadio mailing list archive at Nabble.com. > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio