Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Error when using CGAL 4.0.2 libs built by CGAL4.0.2 + Qt4.8.2 + boost1.50.0 + VS2010

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Error when using CGAL 4.0.2 libs built by CGAL4.0.2 + Qt4.8.2 + boost1.50.0 + VS2010


Chronological Thread 
  • From: Philipp Moeller <>
  • To:
  • Subject: Re: [cgal-discuss] Error when using CGAL 4.0.2 libs built by CGAL4.0.2 + Qt4.8.2 + boost1.50.0 + VS2010
  • Date: Tue, 14 Aug 2012 09:47:14 +0200
  • Organization: GeometryFactory

Zhanghong Tang
<>
writes:

> Dear all,
>
> I have built the CGAL4.0.2 32 bit libs by CGAL4.0.2 + Qt4.8.2 + boost1.50.0
> + VS2010. However, when using the libs
> libCGAL_Core-vc100-mt-gd-4.0.2.lib and libCGAL-vc100-mt-gd-4.0.2.lib
>
> in my code, the following error displayed:
>
> 1>libboost_thread-vc100-mt-gd-1_50.lib(thread.obj) : error LNK2019:
> unresolved external symbol "public: static class
> boost::chrono::time_point<class boost::chrono::system_clock,class
> boost::chrono::duration<__int64,class boost::ratio<1,10000000> > >
> __cdecl boost::chrono::system_clock::now(void)"
> (?now@system_clock@chrono@boost@@SA?AV?$time_point@Vsystem_clock@chrono@boost@@V?$duration@_JV?$ratio@$00$0JIJGIA@@boost@@@23@@23@XZ)
> referenced in function "public: bool __thiscall
> boost::thread::try_join_until(class boost::chrono::time_point<class
> boost::chrono::system_clock,class
> boost::chrono::duration<__int64,class boost::ratio<1,1000000000> > >
> const &)"
> (?try_join_until@thread@boost@@QAE_NABV?$time_point@Vsystem_clock@chrono@boost@@V?$duration@_JV?$ratio@$00$0DLJKMKAA@@boost@@@23@@chrono@2@@Z)
>
>
> The code works well when using the libs by
> CGAL3.9 + Qt4.7.2 + boost1.47.0 + VS2010.

Apparently Boost.Thread requires to be linked against chrono in 1.50 if
you are calling certain functions. However, this shouldn't be the case
for any CGAL code. If you are using Boost.Thread yourself, make sure to
link against all its dependencies [1].

Footnotes:
[1] http://www.boost.org/doc/libs/1_50_0/doc/html/thread/build.html

HTH,
Philipp




Archive powered by MHonArc 2.6.18.

Top of Page