Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (CGAL/GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] LNK2005 error on DLL and LIB conflict
- Date: Mon, 20 Aug 2012 16:38:13 +0200
- Organization: GeometryFactory
Le lundi 20 août 2012 07:25:33 casche a écrit :
> Visual Studio does not compile my CGAL application cancelling the linking
> process with a LNK2005-error. Does anyone know a solution to this problem (I
> guess, it might be quite simple).
>
> Boost is version 1.50(32bit) from BoostPro and all paths are correct.
>
> CGAL_Core-vc100-mt-gd-4.0.2.lib(CGAL_Core-vc100-mt-gd-4.0.2.dll) : error
> LNK2005: "public: __thiscall CORE::BigFloat::~BigFloat(void)"
> (??1BigFloat@CORE@@QAE@XZ) is defined in
> CGAL_Core-vc100-mt-gd.lib(all_files.obj)
> ....
>
> The qmake-pro-file looks like this
>
> ...
> LIBS += -L$(MY_PROJECT)/lib -L$(LIB_DIR) -lmpfr-vc100-mt-gd
> -lgmp-vc100-mt-gd -lCGAL_Core-vc100-mt-gd -lmylib
> ...
>
> and LIB_DIR does only contain the .lib-files of boost, gmp, cgal etc.
>
> Thanks
On Windows, when one uses the Microsoft compilers, CGAL libraries are linked
using auto-linking. You need to remove the flags -lCGAL_Core-vc100-mt-gd and
similar (only for CGAL libraries). You probably have libraries named
CGAL_Core-vc100-mt-gd.lib in your build tree.
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] LNK2005 error on DLL and LIB conflict, casche, 08/20/2012
- Re: [cgal-discuss] LNK2005 error on DLL and LIB conflict, Laurent Rineau (CGAL/GeometryFactory), 08/20/2012
- AW: [cgal-discuss] LNK2005 error on DLL and LIB conflict, Christian Asche, 08/21/2012
- Re: AW: [cgal-discuss] LNK2005 error on DLL and LIB conflict, Laurent Rineau (CGAL/GeometryFactory), 08/22/2012
- AW: [cgal-discuss] LNK2005 error on DLL and LIB conflict, Christian Asche, 08/21/2012
- Re: [cgal-discuss] LNK2005 error on DLL and LIB conflict, Laurent Rineau (CGAL/GeometryFactory), 08/20/2012
Archive powered by MHonArc 2.6.18.