Skip to Content.
Sympa Menu

cgal-discuss - RE: [cgal-discuss] Visual Studio 10 - CGAL3.9, boost_1_48_0 64 bit debug produces linking error or unresolved externals

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: Thu, 19 Jan 2012 21:32:04 -0000

Thanks Andreas! - sorry - not seen cmake/ cmake gui before last week!
The CGAL_AUTO_LINK_GMP is unchecked/ I aslo see that there is there there
is a Boost_THREAD_LIBRARY_DEBUG value which is set as
C:/v100_libs/Boost/64bit/boost_1_48_0/stage/lib/libboost_thread-vc100-mt-gd-
1_48.lib. Is this the library that CGAL-vc100-mt-gd.lib is be statically
linked to, in order resolve the symbols boost::detail::set_tss_data( ), etc?
Still getting them unresolved?,

Thanks,

Ewan



-----Original Message-----
From: Andreas Fabri
[mailto:]

Sent: 19 January 2012 20:39
To:

Subject: Re: [cgal-discuss] Visual Studio 10 - CGAL3.9, boost_1_48_0 64 bit
debug produces linking error or unresolved externals


Can you click on Grouped and on Advanced in cmake-gui

andreas

On 19/01/2012 20:59, Ewan Brock wrote:
> Hi Andreas,
> Thanks for the reply - unfortunately there's no sign of any value
> CGAL_AUTO_LINK_GMP in the CMAKE-gui window-please see attachment,
>
> Any ideas?
>
> Thanks,
>
> Ewan
>
>
>
> -----Original Message-----
> From: Andreas Fabri
> [mailto:]
> Sent: 19 January 2012 17:41
> To:
>
> Subject: Re: [cgal-discuss] Visual Studio 10 - CGAL3.9, boost_1_48_0
> 64 bit debug produces linking error or unresolved externals
>
>
> Hi Ewan,
>
> When you start cmake-gui where you built the CGAL library, the
> variable CGAL_AUTO_LINK_GMP should be unmarked.
>
> In previous releases of CGAL we adopted the boost naming scheme for
> GMP, but we gave that up again, and precompile GMP as C library with
mingw.
>
> best regards,
>
> andreas
>
> On 19/01/2012 18:14, Ewan Brock wrote:
>> Hi,
>>
>> I'm having problems linking with boost when building in visual studio
>> 10 - here's what I've done:
>>
>> 1.Download the cgal installer - choose 64 bit install at
>> C:\fresh_cgal\CGAL-3.9>
>>
>> 2.Go to C:\fresh_cgal\CGAL-3.9> and " cmake -G"Visual Studio 10 Win64"
>>
>> Output is below:
>>
>> 3.Open the solution and build.
>>
>> 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'
>>
>> Attempts to rename libgmp-10.lib to gmp-vc100-mt-gd.lib result in
>> unresolved externals boost::detail::set_tss_data( ), etc.
>>
>> So I presume the error lies in the version of the gmp lib. What do I
>> need to do to get the correct version - or does the problem lie
>> somewhere else.
>>
>> Any help would be much appreciated,
>>
>> Ewan
>>
>> Otput from cmake:
>>
>> -- Check for working C compiler using: Visual Studio 10 Win64
>>
>> -- Check for working C compiler using: Visual Studio 10 Win64 --
>> works
>>
>> -- Detecting C compiler ABI info
>>
>> -- Detecting C compiler ABI info - done
>>
>> -- Check for working CXX compiler using: Visual Studio 10 Win64
>>
>> -- Check for working CXX compiler using: Visual Studio 10 Win64 --
>> works
>>
>> -- Detecting CXX compiler ABI info
>>
>> -- Detecting CXX compiler ABI info - done
>>
>> -- Build CGAL from release: CGAL-3.9
>>
>> -- Packagenames: CGAL-3.9
>>
>> -- CGAL_MAJOR_VERSION=3
>>
>> -- CGAL_MINOR_VERSION=9
>>
>> -- CGAL_BUGFIX_VERSION=
>>
>> -- CGAL_SONAME_VERSION=8
>>
>> -- CGAL_SOVERSION =8.0.0
>>
>> -- CGAL_REFERENCE_CACHE_DIR=
>>
>> -- Building static libraries
>>
>> -- Targetting Visual Studio 10 Win64
>>
>> -- Target build enviroment supports auto-linking
>>
>> -- Using VC10 compiler.
>>
>> -- Generator uses intermediate configuration directory:
>> $(Configuration)
>>
>> -- USING CMake version: 2.8.7
>>
>> -- System: Windows
>>
>> -- Build type: Release
>>
>> -- USING CXXFLAGS = ' /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR
>> -D_CRT_SECURE_NO_
>>
>> DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
>> -D_SCL_SECURE_NO_
>>
>> WARNINGS /fp:strict /fp:except- /MD /O2 /Ob2 /D NDEBUG'
>>
>> -- USING LDFLAGS = ' '
>>
>> -- Found GMP: C:/fresh_cgal/CGAL-3.9/auxiliary/gmp/lib/libgmp-10.lib
>>
>> -- Found MPFR: C:/fresh_cgal/CGAL-3.9/auxiliary/gmp/lib/libmpfr-4.lib
>>
>> -- GMP include: C:/fresh_cgal/CGAL-3.9/auxiliary/gmp/include
>>
>> -- GMP libraries:
>> C:/fresh_cgal/CGAL-3.9/auxiliary/gmp/lib/libgmp-10.lib
>>
>> -- GMP definitions:
>>
>> -- USING GMP_VERSION = '5.0.1'
>>
>> -- MPFR include: C:/fresh_cgal/CGAL-3.9/auxiliary/gmp/include
>>
>> -- MPFR libraries:
>> C:/fresh_cgal/CGAL-3.9/auxiliary/gmp/lib/libmpfr-4.lib
>>
>> -- MPFR definitions:
>>
>> -- USING MPFR_VERSION = '3.0.0'
>>
>> -- Boost version: 1.48.0
>>
>> -- Found the following Boost libraries:
>>
>> -- thread
>>
>> -- Boost include: C:/v100_libs/Boost/64bit/boost_1_48_0
>>
>> -- Boost libraries:
>> optimized;C:/v100_libs/Boost/64bit/boost_1_48_0/stage/lib/
>>
>> libboost_thread-vc100-mt-1_48.lib;debug;C:/v100_libs/Boost/64bit/boos
>> t
>> _1_48_0/st
>>
>> age/lib/libboost_thread-vc100-mt-gd-1_48.lib
>>
>> -- Boost definitions:
>>
>> -- USING BOOST_VERSION = '1.48.0'
>>
>> -- Performing Test CGAL_CFG_ARRAY_MEMBER_INITIALIZATION_BUG - Failed
>>
>> -- Performing Test CGAL_CFG_DENORMALS_COMPILE_BUG - Success
>>
>> -- Performing Test CGAL_CFG_FPU_ROUNDING_MODE_UNWINDING_VC_BUG -
>> Failed
>>
>> -- Performing Test CGAL_CFG_IEEE_754_BUG - Success
>>
>> -- Performing Test CGAL_CFG_ISTREAM_INT_BUG - Success
>>
>> -- Performing Test CGAL_CFG_LONGNAME_BUG - Failed
>>
>> -- Performing Test CGAL_CFG_MATCHING_BUG_5 - Success
>>
>> -- Performing Test CGAL_CFG_MATCHING_BUG_6 - Failed
>>
>> -- Performing Test CGAL_CFG_NESTED_CLASS_FRIEND_DECLARATION_BUG -
>> Failed
>>
>> -- Performing Test CGAL_CFG_NO_CPP0X_ARRAY - Success
>>
>> -- Performing Test CGAL_CFG_NO_CPP0X_AUTO - Success
>>
>> -- Performing Test CGAL_CFG_NO_CPP0X_DECLTYPE - Success
>>
>> -- Performing Test
>> CGAL_CFG_NO_CPP0X_DEFAULT_TEMPLATE_ARGUMENTS_FOR_FUNCTION_TEM
>>
>> PLATES - Failed
>>
>> -- Performing Test CGAL_CFG_NO_CPP0X_DELEGATING_CONSTRUCTORS - Failed
>>
>> -- Performing Test CGAL_CFG_NO_CPP0X_DELETED_AND_DEFAULT_FUNCTIONS -
>> Failed
>>
>> -- Performing Test CGAL_CFG_NO_CPP0X_INITIALIZER_LISTS - Failed
>>
>> -- Performing Test CGAL_CFG_NO_CPP0X_ISFINITE - Failed
>>
>> -- Performing Test CGAL_CFG_NO_CPP0X_LAMBDAS - Success
>>
>> -- Performing Test CGAL_CFG_NO_CPP0X_LONG_LONG - Success
>>
>> -- Performing Test CGAL_CFG_NO_CPP0X_RVALUE_REFERENCE - Success
>>
>> -- Performing Test CGAL_CFG_NO_CPP0X_STATIC_ASSERT - Success
>>
>> -- Performing Test CGAL_CFG_NO_CPP0X_TUPLE - Success
>>
>> -- Performing Test CGAL_CFG_NO_CPP0X_VARIADIC_TEMPLATES - Failed
>>
>> -- Performing Test CGAL_CFG_NO_LIMITS - Success
>>
>> -- Performing Test CGAL_CFG_NO_LOGICAL_OPERATORS_ALTERNATIVES -
>> Failed
>>
>> -- Performing Test CGAL_CFG_NO_MESSAGE_PRAGMA_BUG - Success
>>
>> -- Performing Test CGAL_CFG_NO_NEXTAFTER - Failed
>>
>> -- Performing Test CGAL_CFG_NO_STATEMENT_EXPRESSIONS - Failed
>>
>> -- Performing Test CGAL_CFG_NO_STL - Success
>>
>> -- Performing Test CGAL_CFG_NO_TMPL_IN_TMPL_PARAM - Success
>>
>> -- Performing Test CGAL_CFG_NO_TR1_ARRAY - Failed
>>
>> -- Performing Test CGAL_CFG_NO_TR1_TUPLE - Failed
>>
>> -- Performing Test CGAL_CFG_NO_WARNING_CPP_DIRECTIVE_BUG - Failed
>>
>> -- Performing Test CGAL_CFG_NUMERIC_LIMITS_BUG - Success
>>
>> -- Performing Test CGAL_CFG_OUTOFLINE_MEMBER_DEFINITION_BUG - Success
>>
>> -- Performing Test CGAL_CFG_TEMPLATE_IN_DEFAULT_PARAMETER_BUG -
>> Success
>>
>> -- Performing Test CGAL_CFG_TYPENAME_BEFORE_DEFAULT_ARGUMENT_BUG -
>> Success
>>
>> -- Performing Test CGAL_CFG_USING_BASE_MEMBER_BUG_2 - Success
>>
>> -- Library config detected: Core
>>
>> -- Library config detected: ImageIO
>>
>> -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
>>
>> -- Found OpenGL: opengl32
>>
>> -- OpenGL include:
>>
>> -- OpenGL libraries: glu32;opengl32
>>
>> -- NOTICE: CGAL_ImageIO needs ZLib to read compressed files. That
>> feature will n
>>
>> ot be activated.
>>
>> -- Library config detected: Qt3
>>
>> -- CGAL_Qt3 needs Qt3, cannot be configured.
>>
>> -- Library config detected: Qt4
>>
>> -- Looking for Q_WS_X11
>>
>> -- Looking for Q_WS_X11 - not found.
>>
>> -- Looking for Q_WS_WIN
>>
>> -- Looking for Q_WS_WIN - found
>>
>> -- Looking for Q_WS_QWS
>>
>> -- Looking for Q_WS_QWS - not found.
>>
>> -- Looking for Q_WS_MAC
>>
>> -- Looking for Q_WS_MAC - not found.
>>
>> -- USING QT4_VERSION = '4.8.0'
>>
>> -- OpenGL include:
>>
>> -- OpenGL libraries: glu32;opengl32
>>
>> -- OpenGL definitions:
>>
>> -- Qt4 include: C:/Qt/4.8.0-WIN64.VC10/include
>>
>> -- Qt4 libraries:
>> optimized;C:/Qt/4.8.0-WIN64.VC10/lib/qtmain.lib;debug;C:/
>>
>> Qt/4.8.0-WIN64.VC10/lib/qtmaind.lib;optimized;C:/Qt/4.8.0-WIN64.VC10/
>> l
>> ib/QtOpenG
>>
>> L4.lib;debug;C:/Qt/4.8.0-WIN64.VC10/lib/QtOpenGLd4.lib;optimized;C:/Q
>> t
>> /4.8.0-WIN
>>
>>
> 64.VC10/lib/QtGui4.lib;debug;C:/Qt/4.8.0-WIN64.VC10/lib/QtGuid4.lib;op
> timize
> d;C:
>>
>> /Qt/4.8.0-WIN64.VC10/lib/QtCore4.lib;debug;C:/Qt/4.8.0-WIN64.VC10/lib
>> /
>> QtCored4.l
>>
>> ib
>>
>> -- Qt4 definitions: -DQT_DLL
>>
>> -- moc executable: C:/Qt/4.8.0-WIN64.VC10/bin/moc.exe
>>
>> -- uic executable: C:/Qt/4.8.0-WIN64.VC10/bin/uic.exe
>>
>> -- Library configs detected: CGAL;Core;ImageIO;Qt3;Qt4
>>
>> -- Configuring done
>>
>> -- Generating done
>>
>> -- Build files have been written to: C:/fresh_cgal/CGAL-3.9
>>
>> http://www.mve.com/about/people/ewan-brock
>>
>> ***Free commercial licenses for new ASI graduates. ***
>>
>> Midland Valley Exploration Ltd.
>> 144 West George Street
>> Glasgow G2 2HG
>> United Kingdom
>>
>> Tel: +44 (0) 141 332 2681
>> Fax: +44 (0) 141 332 6792
>>
>> The structural geology experts
>>
>
>
> --
> Andreas Fabri, PhD
> Chief Officer, GeometryFactory
> Editor, The CGAL Project
>
> phone: +33.492.954.912 skype: andreas.fabri
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
>


--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912 skype: andreas.fabri

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss





Archive powered by MHonArc 2.6.16.

Top of Page