Skip to Content.
Sympa Menu

cgal-discuss - [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

[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: [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 17:14:56 -0000

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\auxiliary\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/boost_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/lib/QtOpenG

L4.lib;debug;C:/Qt/4.8.0-WIN64.VC10/lib/QtOpenGLd4.lib;optimized;C:/Qt/4.8.0-WIN

64.VC10/lib/QtGui4.lib;debug;C:/Qt/4.8.0-WIN64.VC10/lib/QtGuid4.lib;optimized;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

 

 




Archive powered by MHonArc 2.6.16.

Top of Page