# Error using "make" while creating my own block

**URL:** <https://www.ruby-forum.com/t/error-using-make-while-creating-my-own-block/234690>\
**Category:** GNU Radio\
**Created:** [March 22, 2015, 5:01pm UTC](https://www.ruby-forum.com/t/error-using-make-while-creating-my-own-block/234690 "2015-03-22T17:01:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [March 22, 2015, 5:01pm UTC](https://www.ruby-forum.com/t/error-using-make-while-creating-my-own-block/234690/1 "2015-03-22T17:01:42Z")

</div>

Hi!

I am trying to create my own GNURadio block, coding purely in python. To  
start with I’m just coding a very simple block. The python code is good,  
so is the test code.

The issues are with cmake and make.

When I created a build directory and ran cmake …/ I was getting a  
linker language error. I looked through the forum and found that I had  
to remove the lib subdir from CMakeLists.txt which I did. cmake ran fine  
after that.

Now when I run make, I get something like this.

[6%] Built target \_howto\_swig\_doc\_tag  
[13%] Built target \_howto\_swig\_swig\_tag  
Linking CXX shared module \_howto\_swig.so  
/usr/bin/ld: cannot find -lgnuradio-howto  
collect2: error: ld returned 1 exit status  
make[2]: \*\*\* [swig/\_howto\_swig.so] Error 1  
make[1]: \*\*\* [swig/CMakeFiles/\_howto\_swig.dir/all] Error 2  
make: \*\*\* [all] Error 2

I am quite new to GNURadio. Any help in the matter will be greatly  
appreciated. I am using GNURadio 3.7.5.

Thanks a lot!  
Anil
