Fatal error LNK1169: one or more multiply defined symbols found

giovedì 18 settembre 2008 - 10.10

brandorama Profilo | Newbie

Hi,
i need to compile a Visual Studio project with the CGAL library.
The Linker show me many of these messages:

msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(int)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z) already defined in graph.obj

(graph.cpp is a file of the project, but i have conflict qith the defaul library too)

And at the end:

-fatal error LNK1169: one or more multiply defined symbols found.

How can i fix this problem?

Brandorama

Dainesi Profilo | Senior Member

Please refer Visual Studio version and language in use.

brandorama Profilo | Newbie

Sorry you have the reason..
I use Visual Studio 2005 and the CGAL 3.2.1 version.
A friend say me that this version of CGAL does not support officially Visual Studio 2005, and to not have this problem i have to compile the project with the same Windows runtime that the CGAL 3.2.1 version uses: the DLL multithread (/MD) runtime.

Now my question is: how can i do that?
there are opcion to check or something to install?

PS: i can't use the last version of CGAL (3.3.1) because i need an include file that in the last version is deprecated.

Andrea
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5