Skip to Content.
Sympa Menu

cgal-discuss - R: [cgal-discuss] building example without CMAKE

Subject: CGAL users discussion list

List archive

R: [cgal-discuss] building example without CMAKE


Chronological Thread 
  • From: Mario Ponzano <>
  • To: "''" <>
  • Subject: R: [cgal-discuss] building example without CMAKE
  • Date: Wed, 13 Mar 2013 13:10:07 +0000
  • Accept-language: it-IT, it-CH, en-US
  • Authentication-results: zhbdzmsp-smtp13 x-tls.subject="/CN=SRVMAIL-CH"; auth=fail (cipher=AES128-SHA)

Really thanks Laurent, with that Preprocessor Macro it's ok now.

Only one thing: why am I bound to add to the linker these 2 lib
C:\dev\CGAL-4.1\auxiliary\gmp\lib\libmpfr-4.lib;
C:\dev\CGAL-4.1\auxiliary\gmp

\lib\libgmp-10.lib?

Those directories are already in my Library directories.



-----Messaggio originale-----
Da:


[mailto:]
Per conto di Laurent Rineau (CGAL/GeometryFactory)
Inviato: mercoledì 13 marzo 2013 10:39
A:

Oggetto: Re: [cgal-discuss] building example without CMAKE

Le mercredi 13 mars 2013 09:05:07 ponzano a ?crit :
> Hi,
>
> i've tried to build the first example the "Convex_hull_2 example"
> without CMake. Of course with cmake the example is builded.
>
> On the countrary if with VisualStudio 2010 on Windows7 32 bit i create
> a simple console application project i get the error:
>
> "cannot open file libboost_thread-vc100-mt-gd-1_47.lib".
>
> I installed CGAL and Boost as in
> http://www.cgal.org/windows_installation.html.
> i included the following path in my projetc:
>
> for include dir:
> C:\dev\CGAL-4.1\auxiliary\gmp\include;
> C:\dev\CGAL-4.1\build\include;
> C:\dev\CGAL-4.1\include;
> C:\Program Files\boost\boost_1_47;
> C:\Qt\4.8.4\include;
> C:\Qt\4.8.4\include\QtCore;
> C:\Qt\4.8.4\include\QtGui;
>
>
> for lib dir:
> C:\Program Files\boost\boost_1_47\lib; C:\dev\CGAL-4.1\build\lib;
> C:\dev\CGAL-4.1\auxiliary\gmp\lib;
> C:\Qt\4.8.4\lib;
>
> In my pc i've "boost_thread-vc100-mt-gd-1_47.lib" but not
> "libboost_thread- vc100-mt-gd-1_47.lib" but if in cmake project is ok i
> shouldn't need it.
>
> Do you have any suggestion?

You should define the preprocessor macro BOOST_ALL_DYN_LINK. With that macro,
the auto-linking feature of Boost will search for the DLL-version of the .lib
files, those that do not start with the prefix "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://sympa.inria.fr/sympa/info/cgal-discuss








Archive powered by MHonArc 2.6.18.

Top of Page