[pdal] filesystem3, pdalboost, VS10

Kirk McKelvey kmckelvey at lizardtech.com
Thu Mar 1 18:16:04 EST 2012


It is a cmake option I discovered when dealing with duplicate symbols trying to get the Windows build up.  It links against a library without adding it to the implicit dependencies list for the thing linking it in.  If you are getting undefined symbols I don't think it's the same issue.


-----Original Message-----
From: Michael P. Gerlek [mailto:mpg at flaxen.com]
Sent: jeudi 1 mars 2012 17:09
To: Kirk McKelvey; pdal at lists.osgeo.org
Subject: RE: [pdal] filesystem3, pdalboost, VS10

Not main-related, no -- this is just resolving stuff to for the DLL.

Full errors down below, but they look like this:

unresolved external symbol "bool __cdecl pdalboost::filesystem3::detail::remove(class pdalboost::filesystem3::path const &,class pdalboost::system::error_code *)" (?remove at detail@filesystem3 at pdalboost@@YA_NABVpath at 23@PAVerror_code at system@3@@Z) referenced in function "bool __cdecl pdalboost::filesystem3::remove(class pdalboost::filesystem3::path const &)" (?remove at filesystem3@pdalboost@@YA_NABVpath at 12@@Z)

What's the LINK_PRIVATE thing Hobu mentioned?

-mpg


> -----Original Message-----
> From: pdal-bounces at lists.osgeo.org
> [mailto:pdal-bounces at lists.osgeo.org] On Behalf Of Kirk McKelvey
> Sent: Thursday, March 01, 2012 1:57 PM
> To: pdal at lists.osgeo.org
> Subject: RE: [pdal] filesystem3, pdalboost, VS10
>
> I believe this is/was building correctly.  Though there was a fair
> amount of trouble around whether to compile with BOOST_TEST_DYN_LINK or not.  Are any of the symbols mentioned "main"-related?
>
>
> -----Original Message-----
> From: pdal-bounces at lists.osgeo.org
> [mailto:pdal-bounces at lists.osgeo.org] On Behalf Of Michael P. Gerlek
> Sent: jeudi 1 mars 2012 15:20
> To: pdal at lists.osgeo.org
> Subject: [pdal] filesystem3, pdalboost, VS10
>
> I'm trying to build under VS2010, for the 1st time since the sprint,
> and I'm getting a bazillion link errors on pdal.lib due to missing functions from pdalboost::filesystem3.  I'm using the embedded boost.
>
> Before I dive into this, anyone have any clues or hints?
>
> -mpg
>
>
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pdal
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pdal




Error   1       error LNK2019: unresolved external symbol "bool __cdecl pdalboost::filesystem3::detail::remove(class pdalboost::filesystem3::path const &,class pdalboost::system::error_code *)" (?remove at detail@filesystem3 at pdalboost@@YA_NABVpath at 23@PAVerror_code at system@3@@Z) referenced in function "bool __cdecl pdalboost::filesystem3::remove(class pdalboost::filesystem3::path const &)" (?remove at filesystem3@pdalboost@@YA_NABVpath at 12@@Z)  D:\dev\pdal\src\FileUtils.obj   pdal
Error   2       error LNK2019: unresolved external symbol "void __cdecl pdalboost::filesystem3::detail::rename(class pdalboost::filesystem3::path const &,class pdalboost::filesystem3::path const &,class pdalboost::system::error_code *)" (?rename at detail@filesystem3 at pdalboost@@YAXABVpath at 23@0PAVerror_code at system@3@@Z) referenced in function "void __cdecl pdalboost::filesystem3::rename(class pdalboost::filesystem3::path const &,class pdalboost::filesystem3::path const &)" (?rename at filesystem3@pdalboost@@YAXABVpath at 12@0 at Z)    D:\dev\pdal\src\FileUtils.obj   pdal
Error   3       error LNK2019: unresolved external symbol "class pdalboost::filesystem3::file_status __cdecl pdalboost::filesystem3::detail::status(class pdalboost::filesystem3::path const &,class pdalboost::system::error_code *)" (?status at detail@filesystem3 at pdalboost@@YA?AVfile_status at 23@ABVpath at 23@PAVerror_code at system@3@@Z) referenced in function "bool __cdecl pdalboost::filesystem3::exists(class pdalboost::filesystem3::path const &)" (?exists at filesystem3@pdalboost@@YA_NABVpath at 12@@Z)     D:\dev\pdal\src\FileUtils.obj   pdal
Error   4       error LNK2019: unresolved external symbol "unsigned __int64 __cdecl pdalboost::filesystem3::detail::file_size(class pdalboost::filesystem3::path const &,class pdalboost::system::error_code *)" (?file_size at detail@filesystem3 at pdalboost@@YA_KABVpath at 23@PAVerror_code at system@3@@Z) referenced in function "unsigned __int64 __cdecl pdalboost::filesystem3::file_size(class pdalboost::filesystem3::path const &)" (?file_size at filesystem3@pdalboost@@YA_KABVpath at 12@@Z)      D:\dev\pdal\src\FileUtils.obj   pdal
Error   5       error LNK2019: unresolved external symbol "void __cdecl pdalboost::filesystem3::path_traits::convert(wchar_t const *,wchar_t const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::codecvt<wchar_t,char,int> const &)" (?convert at path_traits@filesystem3 at pdalboost@@YAXPB_W0AAV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@ABV?$codecvt at _WDH@5@@Z) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const __thiscall pdalboost::filesystem3::path::string(class std::codecvt<wchar_t,char,int> const &)const " (?string at path@filesystem3 at pdalboost@@QBE?BV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@ABV?$codecvt at _WDH@5@@Z)   D:\dev\pdal\src\FileUtils.obj   pdal
Error   6       error LNK2001: unresolved external symbol "void __cdecl pdalboost::filesystem3::path_traits::convert(wchar_t const *,wchar_t const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::codecvt<wchar_t,char,int> const &)" (?convert at path_traits@filesystem3 at pdalboost@@YAXPB_W0AAV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@ABV?$codecvt at _WDH@5@@Z)      D:\dev\pdal\src\StageFactory.obj        pdal
Error   7       error LNK2001: unresolved external symbol "void __cdecl pdalboost::filesystem3::path_traits::convert(wchar_t const *,wchar_t const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::codecvt<wchar_t,char,int> const &)" (?convert at path_traits@filesystem3 at pdalboost@@YAXPB_W0AAV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@ABV?$codecvt at _WDH@5@@Z)      D:\dev\pdal\src\Utils.obj       pdal
Error   8       error LNK2019: unresolved external symbol "private: static class std::codecvt<wchar_t,char,int> const * & __cdecl pdalboost::filesystem3::path::wchar_t_codecvt_facet(void)" (?wchar_t_codecvt_facet at path@filesystem3 at pdalboost@@CAAAPBV?$codecvt at _WDH@std@@XZ) referenced in function "public: static class std::codecvt<wchar_t,char,int> const & __cdecl pdalboost::filesystem3::path::codecvt(void)" (?codecvt at path@filesystem3 at pdalboost@@SAABV?$codecvt at _WDH@std@@XZ)     D:\dev\pdal\src\FileUtils.obj   pdal
Error   9       error LNK2001: unresolved external symbol "private: static class std::codecvt<wchar_t,char,int> const * & __cdecl pdalboost::filesystem3::path::wchar_t_codecvt_facet(void)" (?wchar_t_codecvt_facet at path@filesystem3 at pdalboost@@CAAAPBV?$codecvt at _WDH@std@@XZ) D:\dev\pdal\src\StageFactory.obj        pdal
Error   10      error LNK2001: unresolved external symbol "private: static class std::codecvt<wchar_t,char,int> const * & __cdecl pdalboost::filesystem3::path::wchar_t_codecvt_facet(void)" (?wchar_t_codecvt_facet at path@filesystem3 at pdalboost@@CAAAPBV?$codecvt at _WDH@std@@XZ) D:\dev\pdal\src\Utils.obj       pdal
Error   11      error LNK2019: unresolved external symbol "class pdalboost::filesystem3::path __cdecl pdalboost::filesystem3::detail::current_path(class pdalboost::system::error_code *)" (?current_path at detail@filesystem3 at pdalboost@@YA?AVpath at 23@PAVerror_code at system@3@@Z) referenced in function "class pdalboost::filesystem3::path __cdecl pdalboost::filesystem3::current_path(void)" (?current_path at filesystem3@pdalboost@@YA?AVpath at 12@XZ)   D:\dev\pdal\src\FileUtils.obj   pdal
Error   12      error LNK2019: unresolved external symbol "class pdalboost::filesystem3::path __cdecl pdalboost::filesystem3::absolute(class pdalboost::filesystem3::path const &,class pdalboost::filesystem3::path const &)" (?absolute at filesystem3@pdalboost@@YA?AVpath at 12@ABV312 at 0@Z) referenced in function "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl pdal::FileUtils::toAbsolutePath(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?toAbsolutePath at FileUtils@pdal@@SA?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@ABV34@@Z) D:\dev\pdal\src\FileUtils.obj   pdal
Error   13      error LNK2019: unresolved external symbol "public: class pdalboost::filesystem3::path __thiscall pdalboost::filesystem3::path::parent_path(void)const " (?parent_path at path@filesystem3 at pdalboost@@QBE?AV123 at XZ) referenced in function "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl pdal::FileUtils::getDirectory(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?getDirectory at FileUtils@pdal@@SA?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@ABV34@@Z)       D:\dev\pdal\src\FileUtils.obj   pdal
Error   14      error LNK2019: unresolved external symbol "public: class pdalboost::filesystem3::path __thiscall pdalboost::filesystem3::path::root_name(void)const " (?root_name at path@filesystem3 at pdalboost@@QBE?AV123 at XZ) referenced in function "public: bool __thiscall pdalboost::filesystem3::path::has_root_name(void)const " (?has_root_name at path@filesystem3 at pdalboost@@QBE_NXZ)       D:\dev\pdal\src\FileUtils.obj   pdal
Error   15      error LNK2019: unresolved external symbol "public: class pdalboost::filesystem3::path __thiscall pdalboost::filesystem3::path::root_directory(void)const " (?root_directory at path@filesystem3 at pdalboost@@QBE?AV123 at XZ) referenced in function "public: bool __thiscall pdalboost::filesystem3::path::has_root_directory(void)const " (?has_root_directory at path@filesystem3 at pdalboost@@QBE_NXZ)   D:\dev\pdal\src\FileUtils.obj   pdal
Error   16      error LNK2019: unresolved external symbol "void __cdecl pdalboost::filesystem3::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,class std::codecvt<wchar_t,char,int> const &)" (?convert at path_traits@filesystem3 at pdalboost@@YAXPBD0AAV?$basic_string at _WU?$char_traits at _W@std@@V?$allocator at _W@2@@std@@ABV?$codecvt at _WDH@5@@Z) referenced in function "void __cdecl pdalboost::filesystem3::path_traits::dispatch<class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,class std::codecvt<wchar_t,char,int> const &)"
(??$dispatch at V?$basic_string at _WU?$char_traits at _W@std@@V?$allocator at _W@2@@std@@@path_traits at filesystem3@pdalboost@@YAXABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@AAV?$basic_string at _WU?$char_traits at _W@std@@V?$allocator at _W@2@@4 at ABV?$codecvt at _WDH@4@@Z)    D:\dev\pdal\src\FileUtils.obj   pdal
Error   17      error LNK2001: unresolved external symbol "void __cdecl pdalboost::filesystem3::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,class std::codecvt<wchar_t,char,int> const &)" (?convert at path_traits@filesystem3 at pdalboost@@YAXPBD0AAV?$basic_string at _WU?$char_traits at _W@std@@V?$allocator at _W@2@@std@@ABV?$codecvt at _WDH@5@@Z) D:\dev\pdal\src\StageFactory.obj        pdal
Error   18      error LNK2001: unresolved external symbol "void __cdecl pdalboost::filesystem3::path_traits::convert(char const *,char const *,class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,class std::codecvt<wchar_t,char,int> const &)" (?convert at path_traits@filesystem3 at pdalboost@@YAXPBD0AAV?$basic_string at _WU?$char_traits at _W@std@@V?$allocator at _W@2@@std@@ABV?$codecvt at _WDH@5@@Z) D:\dev\pdal\src\Utils.obj       pdal
Error   19      error LNK2019: unresolved external symbol "public: class pdalboost::filesystem3::path __thiscall pdalboost::filesystem3::path::stem(void)const " (?stem at path@filesystem3 at pdalboost@@QBE?AV123 at XZ) referenced in function "public: void __thiscall pdal::StageFactory::loadPlugins(void)" (?loadPlugins at StageFactory@pdal@@QAEXXZ)       D:\dev\pdal\src\StageFactory.obj        pdal
Error   20      error LNK2019: unresolved external symbol "public: class pdalboost::filesystem3::path __thiscall pdalboost::filesystem3::path::extension(void)const " (?extension at path@filesystem3 at pdalboost@@QBE?AV123 at XZ) referenced in function "public: void __thiscall pdal::StageFactory::loadPlugins(void)" (?loadPlugins at StageFactory@pdal@@QAEXXZ)     D:\dev\pdal\src\StageFactory.obj        pdal
Error   21      error LNK2019: unresolved external symbol "public: class pdalboost::filesystem3::path __thiscall pdalboost::filesystem3::path::filename(void)const " (?filename at path@filesystem3 at pdalboost@@QBE?AV123 at XZ) referenced in function "public: void __thiscall pdal::StageFactory::loadPlugins(void)" (?loadPlugins at StageFactory@pdal@@QAEXXZ)       D:\dev\pdal\src\StageFactory.obj        pdal
Error   22      error LNK2019: unresolved external symbol "private: class pdalboost::filesystem3::file_status __thiscall pdalboost::filesystem3::directory_entry::m_get_symlink_status(class pdalboost::system::error_code *)const " (?m_get_symlink_status at directory_entry@filesystem3 at pdalboost@@ABE?AVfile_status at 23@PAVerror_code at system@3@@Z) referenced in function "public: class pdalboost::filesystem3::file_status __thiscall pdalboost::filesystem3::directory_entry::symlink_status(void)const " (?symlink_status at directory_entry@filesystem3 at pdalboost@@QBE?AVfile_status at 23@XZ)   D:\dev\pdal\src\StageFactory.obj        pdal
Error   23      error LNK2019: unresolved external symbol "void __cdecl pdalboost::filesystem3::detail::directory_iterator_construct(class pdalboost::filesystem3::directory_iterator &,class pdalboost::filesystem3::path const &,class pdalboost::system::error_code *)" (?directory_iterator_construct at detail@filesystem3 at pdalboost@@YAXAAVdirectory_iterator at 23@ABVpath at 23@PAVerror_code at system@3@@Z) referenced in function "public: __thiscall pdalboost::filesystem3::directory_iterator::directory_iterator(class pdalboost::filesystem3::path const &)" (??0directory_iterator at filesystem3@pdalboost@@QAE at ABVpath@12@@Z)       D:\dev\pdal\src\StageFactory.obj        pdal
Error   24      error LNK2019: unresolved external symbol "void __cdecl pdalboost::filesystem3::detail::directory_iterator_increment(class pdalboost::filesystem3::directory_iterator &,class pdalboost::system::error_code *)" (?directory_iterator_increment at detail@filesystem3 at pdalboost@@YAXAAVdirectory_iterator at 23@PAVerror_code at system@3@@Z) referenced in function "private: void __thiscall pdalboost::filesystem3::directory_iterator::increment(void)" (?increment at directory_iterator@filesystem3 at pdalboost@@AAEXXZ) D:\dev\pdal\src\StageFactory.obj        pdal
Error   25      error LNK2019: unresolved external symbol "public: class pdalboost::filesystem3::path::iterator __thiscall pdalboost::filesystem3::path::begin(void)const " (?begin at path@filesystem3 at pdalboost@@QBE?AViterator at 123@XZ) referenced in function "bool __cdecl pdalboost::filesystem3::operator<(class pdalboost::filesystem3::path const &,class pdalboost::filesystem3::path const &)" (??Mfilesystem3 at pdalboost@@YA_NABVpath at 01@0 at Z)    D:\dev\pdal\src\StageFactory.obj        pdal
Error   26      error LNK2019: unresolved external symbol "public: class pdalboost::filesystem3::path::iterator __thiscall pdalboost::filesystem3::path::end(void)const " (?end at path@filesystem3 at pdalboost@@QBE?AViterator at 123@XZ) referenced in function "bool __cdecl pdalboost::filesystem3::operator<(class pdalboost::filesystem3::path const &,class pdalboost::filesystem3::path const &)" (??Mfilesystem3 at pdalboost@@YA_NABVpath at 01@0 at Z)        D:\dev\pdal\src\StageFactory.obj        pdal
Error   27      error LNK2019: unresolved external symbol "private: static void __cdecl pdalboost::filesystem3::path::m_path_iterator_increment(class pdalboost::filesystem3::path::iterator &)" (?m_path_iterator_increment at path@filesystem3 at pdalboost@@CAXAAViterator at 123@@Z) referenced in function "private: void __thiscall pdalboost::filesystem3::path::iterator::increment(void)" (?increment at iterator@path at filesystem3@pdalboost@@AAEXXZ)      D:\dev\pdal\src\StageFactory.obj        pdal
Error   28      error LNK2019: unresolved external symbol "class pdalboost::system::error_code __cdecl pdalboost::filesystem3::detail::dir_itr_close(void * &)" (?dir_itr_close at detail@filesystem3 at pdalboost@@YA?AVerror_code at system@3 at AAPAX@Z) referenced in function "public: __thiscall pdalboost::filesystem3::detail::dir_itr_imp::~dir_itr_imp(void)" (??1dir_itr_imp at detail@filesystem3 at pdalboost@@QAE at XZ)       D:\dev\pdal\src\StageFactory.obj        pdal
Error   29      error LNK2019: unresolved external symbol "class pdalboost::filesystem3::path __cdecl pdalboost::filesystem3::detail::unique_path(class pdalboost::filesystem3::path const &,class pdalboost::system::error_code *)" (?unique_path at detail@filesystem3 at pdalboost@@YA?AVpath at 23@ABV423 at PAVerror_code@system at 3@@Z) referenced in function "class pdalboost::filesystem3::path __cdecl pdalboost::filesystem3::unique_path(class pdalboost::filesystem3::path const &)" (?unique_path at filesystem3@pdalboost@@YA?AVpath at 12@ABV312@@Z)        D:\dev\pdal\src\Utils.obj       pdal
Error   30      error LNK2019: unresolved external symbol "public: class pdalboost::filesystem3::path & __thiscall pdalboost::filesystem3::path::operator/=(class pdalboost::filesystem3::path const &)" (??_0path at filesystem3@pdalboost@@QAEAAV012 at ABV012@@Z) referenced in function "class pdalboost::filesystem3::path __cdecl pdalboost::filesystem3::operator/(class pdalboost::filesystem3::path const &,class pdalboost::filesystem3::path const &)" (??Kfilesystem3 at pdalboost@@YA?AVpath at 01@ABV201 at 0@Z) D:\dev\pdal\src\Utils.obj       pdal
Error   31      error LNK2019: unresolved external symbol "class pdalboost::filesystem3::path __cdecl pdalboost::filesystem3::detail::temp_directory_path(class pdalboost::system::error_code *)" (?temp_directory_path at detail@filesystem3 at pdalboost@@YA?AVpath at 23@PAVerror_code at system@3@@Z) referenced in function "class pdalboost::filesystem3::path __cdecl pdalboost::filesystem3::temp_directory_path(void)"(?temp_directory_path at filesystem3@pdalboost@@YA?AVpath at 12@XZ)        D:\dev\pdal\src\Utils.obj       pdal
Error   32      error LNK1120: 25 unresolved externals  D:\dev\pdal\bin\Debug\pdal.dll  pdal
Error   33      error MSB6006: "link.exe" exited with code 1.   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets   275     6       pcpipeline



More information about the pdal mailing list