Subject: CGAL users discussion list
List archive
[cgal-discuss] Linker error while trying to build a DLL using Visual C++ Express (msvc8)
Chronological Thread
- From: "Jayanta Majumder" <>
- To:
- Subject: [cgal-discuss] Linker error while trying to build a DLL using Visual C++ Express (msvc8)
- Date: Tue, 13 Mar 2007 14:34:45 +0000
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=CoOy5WgHF3cI86gYnI/8bqQGI55ncawb1fBPrQTCJrHBuUYpugnI83L66+mw4jurDvBbF44fEgGR+RpaUgtCjek4s1CV3pGvhMaMeFe9ogbMHW1Rzybb+hmKyrSzPEH+ZVQdbzbw10v2OHd1jj/VsToBzSAufozLUC22mCpy840=
Hi,
I am trying to build a DLL application using CGAL-3.2.1, I am getting the following linker error on account of multiple definition of the same symbol. Please suggest some solution if possible. I tried excluding msvcprt.lib but then I get a large number of linker errors on account of unresolved symbols.
Many thanks,
Best regards
Jayanta
Linking...
msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<char,struct std::char_traits<char>,class std::allocator<char> >(char const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$?HDU?$char_traits@ D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBDABV10@@Z) already defined in CGAL.lib(MP_Float.obj)
msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (??$?6U?$char_traits@ D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z) already defined in DTInterpolator.obj
Creating library c:\Development\DTInterpolator\Release\DTInterpolator.lib and object c:\Development\DTInterpolator\Release\DTInterpolator.exp
c:\Development\DTInterpolator\Release\DTInterpolator.dll : fatal error LNK1169: one or more multiply defined symbols found
Build log was saved at " file://c:\Development\DTInterpolator\DTInterpolator\Release\BuildLog.htm"
DTInterpolator - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
By the way, the CGAL headers I have included are as follows:
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Delaunay_triangulation_2.h>
#include <CGAL/Interpolation_traits_2.h>
#include <CGAL/natural_neighbor_coordinates_2.h>
#include <CGAL/interpolation_functions.h>
- [cgal-discuss] Linker error while trying to build a DLL using Visual C++ Express (msvc8), Jayanta Majumder, 03/13/2007
Archive powered by MHonArc 2.6.16.