Subject: CGAL users discussion list
List archive
RE: [cgal-discuss] Visual Studio 10 - CGAL3.9, boost_1_48_0 64 bit debug produces linking error or unresolved externals
Chronological Thread
- From: "Ewan Brock" <>
- To: <>
- Subject: RE: [cgal-discuss] Visual Studio 10 - CGAL3.9, boost_1_48_0 64 bit debug produces linking error or unresolved externals
- Date: Fri, 20 Jan 2012 12:03:07 -0000
Hello Laurent,
I'm building with A Solution file in Visual Studio 10 - not using cmake - I
notice in autolink/GMP.h, that the n library name mangling gets switched off
if I define CGAL_NO_AUTOLINK_GMP - so if define that in the project, then
at least the linking is done with the correct gmp library - similarly with
MPFR./ I take it that clicking the CGAL_AUTO_LINK_GMP box in the CMake gui
only has an effect if I build my solution using CMake?
So now if I define CGAL_NO_AUTOLINK_GMP and CGAL_NO_AUTOLINK_MPFR, at least
I am now linking with the correct library names.
However I still have the problem with not being able to resolve void *
__cdecl boost::detail::get_tss_data(void const *), and void __cdecl
boost::detail::set_tss_data(), that are referenced from gdal: Full error
given below - this happens even if I link my library with
libboost_thread-vc100-mt-gd-1_48.lib.
Ewan
1>gtkAlphaShape3.obj : error LNK2019: unresolved external symbol "void *
__cdecl boost::detail::get_tss_data(void const *)"
(?get_tss_data@detail@boost@@YAPEAXPEBX@Z)
referenced in function "public:
class std::vector<struct CGAL::Triangulation_data_structure_3<class
CGAL::Triangulation_hierarchy_vertex_base_3<class
CGAL::Alpha_shape_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_vertex_base_3<void> > > >,class
CGAL::Alpha_shape_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_cell_base_3<void> > > >::iAdjacency_info,class
std::allocator<struct CGAL::Triangulation_data_structure_3<class
CGAL::Triangulation_hierarchy_vertex_base_3<class
CGAL::Alpha_shape_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_vertex_base_3<void> > > >,class
CGAL::Alpha_shape_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_cell_base_3<void> > > >::iAdjacency_info> > * __cdecl
boost::thread_specific_ptr<class std::vector<struct
CGAL::Triangulation_data_structure_3<class
CGAL::Triangulation_hierarchy_vertex_base_3<class
CGAL::Alpha_shape_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_vertex_base_3<void> > > >,class
CGAL::Alpha_shape_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_cell_base_3<void> > > >::iAdjacency_info,class
std::allocator<struct CGAL::Triangulation_data_structure_3<class
CGAL::Triangulation_hierarchy_vertex_base_3<class
CGAL::Alpha_shape_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_vertex_base_3<void> > > >,class
CGAL::Alpha_shape_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_cell_base_3<void> > > >::iAdjacency_info> >
>::get(void)const "
(?get@?$thread_specific_ptr@V?$vector@UiAdjacency_info@?$Triangulation_data_
structure_3@V?$Triangulation_hierarchy_vertex_base_3@V?$Alpha_shape_vertex_b
ase_3@VEpick@CGAL@@V?$Triangulation_vertex_base_3@VEpick@CGAL@@V?$Triangulat
ion_ds_vertex_base_3@X@2@@2@@CGAL@@@CGAL@@V?$Alpha_shape_cell_base_3@VEpick@
CGAL@@V?$Triangulation_cell_base_3@VEpick@CGAL@@V?$Triangulation_ds_cell_bas
e_3@X@2@@2@@2@@CGAL@@V?$allocator@UiAdjacency_info@?$Triangulation_data_stru
cture_3@V?$Triangulation_hierarchy_vertex_base_3@V?$Alpha_shape_vertex_base_
3@VEpick@CGAL@@V?$Triangulation_vertex_base_3@VEpick@CGAL@@V?$Triangulation_
ds_vertex_base_3@X@2@@2@@CGAL@@@CGAL@@V?$Alpha_shape_cell_base_3@VEpick@CGAL
@@V?$Triangulation_cell_base_3@VEpick@CGAL@@V?$Triangulation_ds_cell_base_3@
X@2@@2@@2@@CGAL@@@std@@@std@@@boost@@QEBAPEAV?$vector@UiAdjacency_info@?$Tri
angulation_data_structure_3@V?$Triangulation_hierarchy_vertex_base_3@V?$Alph
a_shape_vertex_base_3@VEpick@CGAL@@V?$Triangulation_vertex_base_3@VEpick@CGA
L@@V?$Triangulation_ds_vertex_base_3@X@2@@2@@CGAL@@@CGAL@@V?$Alpha_shape_cel
l_base_3@VEpick@CGAL@@V?$Triangulation_cell_base_3@VEpick@CGAL@@V?$Triangula
tion_ds_cell_base_3@X@2@@2@@2@@CGAL@@V?$allocator@UiAdjacency_info@?$Triangu
lation_data_structure_3@V?$Triangulation_hierarchy_vertex_base_3@V?$Alpha_sh
ape_vertex_base_3@VEpick@CGAL@@V?$Triangulation_vertex_base_3@VEpick@CGAL@@V
?$Triangulation_ds_vertex_base_3@X@2@@2@@CGAL@@@CGAL@@V?$Alpha_shape_cell_ba
se_3@VEpick@CGAL@@V?$Triangulation_cell_base_3@VEpick@CGAL@@V?$Triangulation
_ds_cell_base_3@X@2@@2@@2@@CGAL@@@std@@@std@@XZ)
1>gtkAlphaShape3.obj : error LNK2019: unresolved external symbol "void
__cdecl boost::detail::set_tss_data(void const *,class
boost::shared_ptr<struct boost::detail::tss_cleanup_function>,void *,bool)"
(?set_tss_data@detail@boost@@YAXPEBXV?$shared_ptr@Utss_cleanup_function@deta
il@boost@@@2@PEAX_N@Z)
referenced in function "public: __cdecl
boost::thread_specific_ptr<class std::vector<struct
CGAL::Triangulation_data_structure_3<class
CGAL::Triangulation_hierarchy_vertex_base_3<class
CGAL::Alpha_shape_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_vertex_base_3<void> > > >,class
CGAL::Alpha_shape_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_cell_base_3<void> > > >::iAdjacency_info,class
std::allocator<struct CGAL::Triangulation_data_structure_3<class
CGAL::Triangulation_hierarchy_vertex_base_3<class
CGAL::Alpha_shape_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_vertex_base_3<void> > > >,class
CGAL::Alpha_shape_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_cell_base_3<void> > > >::iAdjacency_info> >
>::~thread_specific_ptr<class std::vector<struct
CGAL::Triangulation_data_structure_3<class
CGAL::Triangulation_hierarchy_vertex_base_3<class
CGAL::Alpha_shape_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_vertex_base_3<void> > > >,class
CGAL::Alpha_shape_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_cell_base_3<void> > > >::iAdjacency_info,class
std::allocator<struct CGAL::Triangulation_data_structure_3<class
CGAL::Triangulation_hierarchy_vertex_base_3<class
CGAL::Alpha_shape_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_vertex_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_vertex_base_3<void> > > >,class
CGAL::Alpha_shape_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_cell_base_3<class CGAL::Epick,class
CGAL::Triangulation_ds_cell_base_3<void> > > >::iAdjacency_info> > >(void)"
(??1?$thread_specific_ptr@V?$vector@UiAdjacency_info@?$Triangulation_data_st
ructure_3@V?$Triangulation_hierarchy_vertex_base_3@V?$Alpha_shape_vertex_bas
e_3@VEpick@CGAL@@V?$Triangulation_vertex_base_3@VEpick@CGAL@@V?$Triangulatio
n_ds_vertex_base_3@X@2@@2@@CGAL@@@CGAL@@V?$Alpha_shape_cell_base_3@VEpick@CG
AL@@V?$Triangulation_cell_base_3@VEpick@CGAL@@V?$Triangulation_ds_cell_base_
3@X@2@@2@@2@@CGAL@@V?$allocator@UiAdjacency_info@?$Triangulation_data_struct
ure_3@V?$Triangulation_hierarchy_vertex_base_3@V?$Alpha_shape_vertex_base_3@
VEpick@CGAL@@V?$Triangulation_vertex_base_3@VEpick@CGAL@@V?$Triangulation_ds
_vertex_base_3@X@2@@2@@CGAL@@@CGAL@@V?$Alpha_shape_cell_base_3@VEpick@CGAL@@
V?$Triangulation_cell_base_3@VEpick@CGAL@@V?$Triangulation_ds_cell_base_3@X@
2@@2@@2@@CGAL@@@std@@@std@@@boost@@QEAA@XZ)
1>CGAL-vc100-mt-gd.lib(all_files.obj) : error LNK2001: unresolved external
symbol "void __cdecl boost::detail::set_tss_data(void const *,class
boost::shared_ptr<struct boost::detail::tss_cleanup_function>,void *,bool)"
(?set_tss_data@detail@boost@@YAXPEBXV?$shared_ptr@Utss_cleanup_function@deta
il@boost@@@2@PEAX_N@Z)
1>c:\dev\ewan\install\Win64_Debug_VC100\Movenewtech\bin\GDFToolkit.dll :
fatal error LNK1120: 2 unresolved externals
-----Original Message-----
From: Laurent Rineau (GeometryFactory)
[mailto:]
Sent: 20 January 2012 10:49
To:
Subject: Re: [cgal-discuss] Visual Studio 10 - CGAL3.9, boost_1_48_0 64 bit
debug produces linking error or unresolved externals
Le jeudi 19 janvier 2012 17:14:56 Ewan Brock a écrit :
> 4. I now have C:\fresh_cgal\CGAL-3.9\lib\Debug\CGAL-vc100-mt-gd.lib
>
> 5. When I link an example, I have lib paths:
>
> LIBPATH:"C:\dev\ewan\utils\cgal\install\cgal-3_9_0-WIN64.VC10\lib"
> /LIBPATH:"C:\dev\ewan\utils\cgal\install\cgal-3_9_0-WIN64.VC10\auxilia
> ry\gmp
> \lib"
>
>
>
> And libraries to link "CGAL-vc100-mt-gd.lib" "CGAL_Core-vc100-mt-gd.lib"
> "libgmp-10.lib"
>
> Error comes up:
>
>
>
>
>
> 1>LINK : fatal error LNK1104: cannot open file 'gmp-vc100-mt-gd.lib'
How have you created the solution for the example? Using CMake? By your own?
Is that a solution file that was used for an older CGAL version? On Windows,
the linking scheme about GMP and MPFR has changed in recent CGAL version. We
dropped the name mangling of the GMP and MPFR .lib file, and now we use the
upstream names: libgmp-10.lib and libmpfr-4.lib.
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- [cgal-discuss] Visual Studio 10 - CGAL3.9, boost_1_48_0 64 bit debug produces linking error or unresolved externals, Ewan Brock, 01/19/2012
- Re: [cgal-discuss] Visual Studio 10 - CGAL3.9, boost_1_48_0 64 bit debug produces linking error or unresolved externals, Andreas Fabri, 01/19/2012
- Re: [cgal-discuss] Visual Studio 10 - CGAL3.9, boost_1_48_0 64 bit debug produces linking error or unresolved externals, Laurent Rineau (GeometryFactory), 01/20/2012
- RE: [cgal-discuss] Visual Studio 10 - CGAL3.9, boost_1_48_0 64 bit debug produces linking error or unresolved externals, Ewan Brock, 01/20/2012
Archive powered by MHonArc 2.6.16.