Subject: CGAL users discussion list
List archive
AW: [cgal-discuss] Linker error while trying to build a DLL using Visual C++ Express 2005 (msvc8)
Chronological Thread
- From: "Stefan Uhrig" <>
- To: <>
- Subject: AW: [cgal-discuss] Linker error while trying to build a DLL using Visual C++ Express 2005 (msvc8)
- Date: Tue, 13 Mar 2007 17:11:06 +0100
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>
- Linker error while trying to build a DLL using Visual C++ Express 2005 (msvc8), Jayanta Majumder, 03/13/2007
- AW: [cgal-discuss] Linker error while trying to build a DLL using Visual C++ Express 2005 (msvc8), Stefan Uhrig, 03/13/2007
- Re: [cgal-discuss] Linker error while trying to build a DLL using Visual C++ Express 2005 (msvc8), Jayanta Majumder, 03/14/2007
- AW: [cgal-discuss] Linker error while trying to build a DLL using Visual C++ Express 2005 (msvc8), Stefan Uhrig, 03/13/2007
Archive powered by MHonArc 2.6.16.