[Qgis-developer] Win32 Build Problem

Rob McCulley RMcCulley at county24.com
Fri May 30 13:50:40 EDT 2008


I'm trying to build qgis using MSVC 8 on windows xp, and I've run into a
bit of a problem.  My qgis source is from svn, and for dependencies, I'm
using the qgislibs-release package from the wiki. All of the components
build successfully except qgis itself.  These are the errors I get:

 

1>Linking...

1>qtmain.lib(qtmain_win.obj) : error LNK2005: "class
std::basic_ostream<char,struct std::char_traits<char> > & __cdecl
std::operator<<<char,struct std::char_traits<char>,class
std::allocator<char> >(class std::basic_ostream<char,struct
std::char_traits<char> > &,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(??$?6DU?$char_traits at D@std@@V?$allocator at D@1@@std@@YAAAV?$basic_ostream
@DU?$char_traits at D@std@@@0 at AAV10@ABV?$basic_string at DU?$char_traits at D@std
@@V?$allocator at D@2@@0@@Z) already defined in msvcprtd.lib(MSVCP80D.dll)

1>   Creating library E:\Build\Source\qgis\build\src\app\Debug\qgis.lib
and object E:\Build\Source\qgis\build\src\app\Debug\qgis.exp

1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of
other libs; use /NODEFAULTLIB:library

1>E:\Build\Source\qgis\build\src\app\Debug\qgis.exe : fatal error
LNK1169: one or more multiply defined symbols found

1>Build log was saved at
"file://e:\Build\Source\qgis\build\src\app\qgis.dir\Debug\BuildLog.htm"

1>qgis - 2 error(s), 1 warning(s)

========== Build: 0 succeeded, 1 failed, 5 up-to-date, 0 skipped
==========

 

Any ideas how to fix this?

 

Thanks,

Rob McCulley

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20080530/44994c20/attachment.html


More information about the Qgis-developer mailing list