Subject: CGAL users discussion list
List archive
- From: "Christian Asche" <>
- To: <>
- Subject: AW: [cgal-discuss] LNK2005 error on DLL and LIB conflict
- Date: Tue, 21 Aug 2012 17:09:28 +0200
This works fine for the compilation. Now I get a runtime error saying
"ordinal 536 could not be located in libgmp-10.lib".
Anyway, I try to recompile each and every included library :(
-----Ursprüngliche Nachricht-----
Von:
[mailto:]
Im
Auftrag von Laurent Rineau (CGAL/GeometryFactory)
Gesendet: Montag, 20. August 2012 16:38
An:
Betreff: Re: [cgal-discuss] LNK2005 error on DLL and LIB conflict
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/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [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.