Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] LNK2005 error on DLL and LIB conflict

Subject: CGAL users discussion list

List archive

[cgal-discuss] LNK2005 error on DLL and LIB conflict


Chronological Thread 
  • From: casche <>
  • To:
  • Subject: [cgal-discuss] LNK2005 error on DLL and LIB conflict
  • Date: Mon, 20 Aug 2012 07:25:33 -0700 (PDT)

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



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/LNK2005-error-on-DLL-and-LIB-conflict-tp4655745.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page