I've been trying to solve a problem linking to osgEphemeris.lib for several hours with no luck. I built the library using the default build settings that were in osgEphemeris\VC7\osgEphemeris\osgEphemeris.vcproj. When I try and include the library in my application (via Linker->Input), I get the following errors:
msvcprt.lib(MSVCP80.dll) : 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 &)" ([EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@1@@std@@YAAAV?$basic_ostream @[EMAIL PROTECTED]@std@@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED] @@[EMAIL PROTECTED]@2@@0@@Z) already defined in osgEphemeris.lib(makeMoonImages.obj) 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> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *)" ([EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@1@@std@@YA?AV?$basic_string@ [EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@[EMAIL PROTECTED]@[EMAIL PROTECTED]) already defined in osgEphemeris.lib(makeMoonImages.obj) C:\gsti\cpp\Visualization\OSG Viewer\Release\OSG Viewer.exe : fatal error LNK1169: one or more multiply defined symbols found If I include makeMoonImages.cpp in my project, it builds fine, but I crash at runtime. And it's obviously not right to include makeMoonImages.cpp in my project. Has anyone seen these errors before? I'm sorry to ask such a platform- and environment-specific question to the group, but I'm completely stuck here. Thanks, Andrew _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
