# Linking Error // Missing Library // openLTE Cmake

**URL:** <https://www.ruby-forum.com/t/linking-error-missing-library-openlte-cmake/246348>\
**Category:** GNU Radio\
**Created:** [October 4, 2013, 9:21pm UTC](https://www.ruby-forum.com/t/linking-error-missing-library-openlte-cmake/246348 "2013-10-04T21:21:23Z")\
**Posts on this page:** 3\
**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:** [October 4, 2013, 9:21pm UTC](https://www.ruby-forum.com/t/linking-error-missing-library-openlte-cmake/246348/1 "2013-10-04T21:21:23Z")

</div>

Hi all,

while adding the a resampler to the openLTE project, i got a linking  
error.

I added in the header file :  
LTE\_fdd\_dl\_scan\_flowgraph the library rational resampler:

Into the header file:  
gr::filter::rational\_resampler\_base\_ccf::sptr resapler\_filter;

Into the source code:  
Top\_block–\>connect(samp\_src,0,resampler\_filer(1536,1000,std::vector(1,1)),0);

And got no compile error.

I included:

#include \<gnuradio/filter/rational\_resampler\_base\_ccf.h\>

Into the header file.

As output I am getting:

Linking CXX executable LTE\_fdd\_dl\_scan  
CMakeFiles/LTE\_fdd\_dl\_scan.dir/src/LTE\_fdd\_dl\_scan\_flowgraph.cc.o[http://lte\_fdd\_dl\_scan.dir/src/LTE\_fdd\_dl\_scan\_flowgraph.cc.o](http://lte_fdd_dl_scan.dir/src/LTE_fdd_dl_scan_flowgraph.cc.o):  
In function `LTE_fdd_dl_scan_flowgraph::start(unsigned short)': LTE_fdd_dl_scan_flowgraph.cc:(.text+0x94b): undefined reference to `gr::filter::rational\_resampler\_base\_ccf::make(unsigned int, unsigned  
int, std::vector\<float, std::allocator \> const&)’ collect2: ld  
returned 1 exit status make[2]: \*\*\* [LTE\_fdd\_dl\_scan/LTE\_fdd\_dl\_scan]  
Error 1 make[1]: \*\*\*  
[LTE\_fdd\_dl\_scan/CMakeFiles/LTE\_fdd\_dl\_scan.dir/all[http://lte\_fdd\_dl\_scan.dir/all](http://lte_fdd_dl_scan.dir/all)]  
Error 2 make: \*\*\* [all] Error 2

I think the problem lies in that I need to add the filters libraries,  
somehow into the projects CMAKEList.txt files.

Could you please help me, in which CMAKEList.txt files (for the the  
overall project or for the app spefic (LTE\_fdd\_dl\_scan) file), I need to  
make some manipulations?

I am going to look more detailed in cmake myself, but if you give hints,  
as always, I will highly appreciate.

Regards,  
Dincer

---

<div class="post-metadata">

**Author:** ![Dincer\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c4cdca/32.png) [@Dincer\_B](https://www.ruby-forum.com/u/Dincer_B)\
**Post date:** [October 4, 2013, 10:35pm UTC](https://www.ruby-forum.com/t/linking-error-missing-library-openlte-cmake/246348/2 "2013-10-04T22:35:36Z")

</div>

Just ran into this one a while back, see the discussion I initiated on  
Sept 17th with the subject line: Updating gr-specest to 3.7

Most of the CMakeList.txt files needed updating… in one way or  
another.

Jared

---

<div class="post-metadata">

**Author:** ![Dincer\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c4cdca/32.png) [@Dincer\_B](https://www.ruby-forum.com/u/Dincer_B)\
**Post date:** [October 5, 2013, 9:56am UTC](https://www.ruby-forum.com/t/linking-error-missing-library-openlte-cmake/246348/3 "2013-10-05T09:56:24Z")

</div>

Thanks Jared!  
I just woke up, opened my computer and tried it out and it  
worked!!wonderful!

Have a nice weekend !

-----Ursprngliche Nachricht-----  
Von: Jared C. [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Gesendet: Freitag, 4. Oktober 2013 22:34  
An: Dincer B.  
Cc: removed\_email\_address@domain.invalid; removed\_email\_address@domain.invalid  
Betreff: Re: [Discuss-gnuradio] Linking Error // Missing Library //  
openLTE Cmake

Just ran into this one a while back, see the discussion I initiated on  
Sept 17th with the subject line: Updating gr-specest to 3.7

Most of the CMakeList.txt files needed updating… in one way or  
another.

Jared
