Hi Rob, On 19/02/21 09:30, Rob Kossler wrote: > Yes, I just double-checked and mine is working. > > So, I just re-checked your link to issue #406. In "steps to reproduce", I > noticed 2 things: > > - On the next-to-last line, the g++ command does not include your custom > library and does not include this link option. The Ettus example builds > your block controller in its own shared library - it does not add it to the > uhd shared library. So, you need to link with both uhd and your > rfnoc-example shared library (or whatever it is named). And, you need to > have that link option. (as a side note, when you built the rfnoc-example, > this did build the init_gain_block.cpp example in the apps folder with this > link option so if you were to run that example, you could confirm that the > block ID in that example is "Gain#0" rather than "Block#0". But since this > example doesn't use the radio, you couldn't use it to verify action > propagation).
So, to summarise: g++ -g -o test rfnoc_rx_to_file.cpp -lboost_program_options -luhd does not work, g++ -g -o test rfnoc_rx_to_file.cpp -lboost_program_options -luhd -lrfnoc_example does not work either, but g++ -g -o test rfnoc_rx_to_file.cpp -lboost_program_options -luhd -Wl,--no-as-needed -lrfnoc_example works. Am I correct? Regards -- Cédric Hannotier _______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com