Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Linker error while trying to build a DLL using Visual C++ Express 2005 (msvc8)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Linker error while trying to build a DLL using Visual C++ Express 2005 (msvc8)


Chronological Thread 
  • From: "Jayanta Majumder" <>
  • To:
  • Subject: Re: [cgal-discuss] Linker error while trying to build a DLL using Visual C++ Express 2005 (msvc8)
  • Date: Wed, 14 Mar 2007 18:07:54 +0000
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ncYvMAvaav6uzYwzcTIFBccO43jaU03BE3aKiat0b+yWNskdmDva9c9Dsc5Pg9Uxd0aKnMatk2armfA8emNl2t4Si3zh8zROt6ZnXQBT+dG2OapTI1bJ76SV5r6eaH7YhJFPxCMJPfoSKWy39pUyXks9urivNcK6Mi0F0nKUCIc=

Thank you very much.
The error disappeared once I disabled the "Incremental Linking" option.
Best regards,
Jayanta


On 3/13/07, Stefan Uhrig <> wrote:
Probably you are using the wrong runtime library. Change it to
Multi-threaded DLL (/MD). In Visual Studio 2005 you find it in the project
properties dialog --> C/C++ --> Code Generation --> Runtime library.


________________________________________
Von: Jayanta Majumder [mailto: ]
Gesendet: Dienstag, 13. März 2007 15:51
An:
Betreff: [cgal-discuss] Linker error while trying to build a DLL using
Visual C++ Express 2005 (msvc8)

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>


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss




Archive powered by MHonArc 2.6.16.

Top of Page