# Linker error when using Poco (with cmake on linux)

**URL:** <https://discourse.libcinder.org/t/linker-error-when-using-poco-with-cmake-on-linux/752>\
**Category:** Using Cinder\
**Created:** [June 28, 2017, 8:47pm UTC](https://discourse.libcinder.org/t/linker-error-when-using-poco-with-cmake-on-linux/752 "2017-06-28T20:47:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![konneker](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@konneker](https://discourse.libcinder.org/u/konneker)\
**Post date:** [June 28, 2017, 8:47pm UTC](https://discourse.libcinder.org/t/linker-error-when-using-poco-with-cmake-on-linux/752/1 "2017-06-28T20:47:34Z")

</div>

Hello All,

I’m looking at cinder to replace some visualization I’m currently doing with VTK.  
I’m using cmake on ubuntu 16.04, and my project currently uses Eigen, CUDA, OpenCV, and Poco.  
I’m trying to use the ci\_make\_app command in my cmake file, but despite the fact that I pass in ${Poco\_LIBRARIES} in the LIBRARIES field, I get linker errors of the form:

> undefined reference to `Poco::DirectoryIterator::DirectoryIterator(std::string const&)’

Any ideas as to why things aren’t working? I assume there’s some conflict between my current cmake stuff to build everything else, and whatever the libcinder cmake functions are doing.

Has anyone else made the cmake+poco+cinder combo work?

---

<div class="post-metadata">

**Author:** ![petros](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/petros/32/26_2.png) [@petros](https://discourse.libcinder.org/u/petros)\
**Post date:** [July 1, 2017, 9:03am UTC](https://discourse.libcinder.org/t/linker-error-when-using-poco-with-cmake-on-linux/752/2 "2017-07-01T09:03:05Z")

</div>

Hi,

it would be very helpful to have some more info in order to debug this. Can you post the output of CMake during the configuration step? Is `${Poco_LIBRARIES}` actually defined and if yes can you post the output of this variable ? Also how do you try to find Poco ? i.e are you using some form of `FindPoco.cmake` ? Do the other libraries that you are using link properly and its just Poco that has this issue ?

Maybe we can be more of help if we have those additional infos!

Cheers,  
Petros

EDIT: Just a suggestion from the top of my head is to try this also  
[Linker errors: MongoDB CXX Driver on Linux](http://discourse.libcinder.org/t/linker-errors-mongodb-cxx-driver-on-linux/504/9?u=petros)

---

<div class="post-metadata">

**Author:** ![konneker](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@konneker](https://discourse.libcinder.org/u/konneker)\
**Post date:** [July 1, 2017, 5:42pm UTC](https://discourse.libcinder.org/t/linker-error-when-using-poco-with-cmake-on-linux/752/3 "2017-07-01T17:42:46Z")

</div>

@petros

You are amazing! Thank you very much. The gcc ABI issue was indeed the culprit.
