# Linking .so files to OOT module

**URL:** <https://www.ruby-forum.com/t/linking-so-files-to-oot-module/243284>\
**Category:** GNU Radio\
**Created:** [September 8, 2015, 2:23am UTC](https://www.ruby-forum.com/t/linking-so-files-to-oot-module/243284 "2015-09-08T02:23:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [September 8, 2015, 2:23am UTC](https://www.ruby-forum.com/t/linking-so-files-to-oot-module/243284/1 "2015-09-08T02:23:47Z")

</div>

Hello everyone,  
I’m trying to create a source and sink block which will connect to a  
database to fetch and drop data. The interface to the database is  
created using shared libraries (.so files) that were defined by someone  
else, not us. I have included the header file, which contains all the  
interfaces, inside the include folder of the module.  
I tried looking for possible solutions and many times it was mentioned  
to use “target\_link\_libraries” in CMakeLists.txt file. Could anyone let  
me know how and where it should be included?  
Note : The code gets compiled and placed into respective folders  
alright, but there is this exception after executing on  
gnuradio-companion.  
Traceback (most recent call last):  
File “/xxx/xxxxx/xxxx.py”, line 754, in   
tb = xxxx()  
File “/xxx/xxxxx/xxxx.py”, line 617, in **init**  
self.xxxx\_src\_0 = xxxxx.xxxx\_src(“127.0.0.1”, 1234, “Username”,  
“password”)  
AttributeError: ‘module’ object has no attribute ‘xxxx\_src’

Thank you.Vamsi
