[pdal] PDAL 1.4 compile error

Andrew Bell andrew.bell.ia at gmail.com
Tue Mar 14 14:21:46 PDT 2017


Alex,

This indeed seems to be a bug in your compiler:
http://stackoverflow.com/questions/35131734/undefined-reference-when-using-lambda

If you're willing to try your compiler with the master branch, I can push a
change that should get around the issue.  I think our use of that construct
is pretty limited, so this might get things working for you.  If things
compile/link I can backport the change to 1.4.


On Tue, Mar 14, 2017 at 4:05 PM, Alex Jokela <alex at camulus.com> wrote:

> Howard-
>
> It looks to be version 4.7.2
>
> Thanks,
>
>   -Alex
>
> > On Mar 14, 2017, at 4:56 PM, Howard Butler <howard at hobu.co> wrote:
> >
> >
> >> On Mar 14, 2017, at 3:34 PM, Alex Jokela <alex at camulus.com> wrote:
> >>
> >> Hello-
> >>
> >> I’m trying to compile PDAL 1.4.0, and I’m running into a compile-time
> error:
> >>
> >> CMakeFiles/pdal_plugin_manager_test.dir/PluginManagerTest.cpp.o: In
> function `pdal::DummyPlugin::initPlugin()::{lambda()#1}::operator int
> (*)()() const':
> >> PluginManagerTest.cpp:(.text._ZZN4pdal11DummyPlugin10initPlu
> ginEvENKUlvE_cvPFivEEv[_ZZN4pdal11DummyPlugin10initPluginEvENKUlvE_cvPFivEEv]+0x9):
> undefined reference to `pdal::DummyPlugin::initPlugin()::{lambda()#1}::_
> FUN()'
> >> collect2: error: ld returned 1 exit status
> >> make[2]: *** [bin/pdal_plugin_manager_test] Error 1
> >> make[1]: *** [test/unit/CMakeFiles/pdal_plugin_manager_test.dir/all]
> Error 2
> >> make: *** [all] Error 2
> >>
> >>
> >> I’m wondering if anyone has run into this, if so, is there a work
> around?
> >
> > I suspect your compiler is too old. Which compiler are you using and
> which version?
> >
> > Howard
>
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pdal
>



-- 
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20170314/39d480dc/attachment.html>


More information about the pdal mailing list