Did you link against the appropriate libraries in cmake? Haven’t done this myself for UHD library calls, but my guess is you need to add UHD to GR_REQUIRED_COMPONENTS, or something similar [1]. That error is a really poor message for diagnosing the root issue ,which is likely a linking problem.
PWG [1] https://wiki.gnuradio.org/index.php/OutOfTreeModulesConfig On May 29, 2017, at 5:53 AM, Amirhosein naseri <[email protected]<mailto:[email protected]>> wrote: Hi i am writing my own block. in my code when i use uhd::time_spec_t class, in running my GRC i got "AttributeError: 'module' object has no attribute" error. but if dont use this class my block works fine. WHY????? tnx. _______________________________________________ Discuss-gnuradio mailing list [email protected]<mailto:[email protected]> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
