Hi thaks for your reply, You are right, it's a compile error. I tried to compile the osgviewer.cpp and I got these errors:
Code: ------ Build started: Project: OSGDefaultProject, Configuration: Debug Win32 ------ Compiling... Main.cpp Linking... LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library Main.obj : warning LNK4217: locally defined symbol ?setst...@?$basic_ios@du?$char_tra...@d@std@@@std@@qaex...@z (public: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)) imported in function "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_tra...@d@std@@@std@@yaaav?$basic_ostr...@du?$char_traits@d...@std@@@0...@aav10@p...@z) Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::flush(void)" (__imp_?fl...@?$basic_ostream@du?$char_tra...@d@std@@@std@@qaeaa...@xz) referenced in function "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::endl(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?e...@std@@yaaav?$basic_ostr...@du?$char_traits@d...@std@@@1...@aav21@@Z) Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::put(char)" (__imp_?...@?$basic_ostream@du?$char_tra...@d@std@@@std@@qaeaa...@d@Z) referenced in function "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::endl(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?e...@std@@yaaav?$basic_ostr...@du?$char_traits@d...@std@@@1...@aav21@@Z) Main.obj : error LNK2019: unresolved external symbol __CrtDbgReportW referenced in function "public: char const & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator[](unsigned int)const " (??a?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@qbea...@z) libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" (__imp_?_o...@?$basic_ostream@du?$char_tra...@d@std@@@std@@QAEXXZ) referenced in function "public: __thiscall std::basic_ostream<char,struct std::char_traits<char> >::sentry::~sentry(void)" (??1sen...@?$basic_ostream@du?$char_tra...@d@std@@@std@@q...@xz) Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > & (__cdecl*)(class std::basic_ostream<char,struct std::char_traits<char> > &))" (__imp_??6?$basic_ostr...@du?$char_traits@d...@std@@@std@@qaeaa...@p6aaav01@AAV01@@z...@z) referenced in function _main libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (?...@yapaxiabu_debugheaptag_t@std@@p...@z) libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (?...@yaxpaxabu_debugheaptag_t@std@@p...@z) libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol __calloc_dbg referenced in function __Getctype C:\OSG\OSGDefaultProject\Debug\OSGDefaultProject.exe : fatal error LNK1120: 8 unresolved externals Build log was saved at "file://c:\OSG\OSGDefaultProject\OSGDefaultProject\Debug\BuildLog.htm" OSGDefaultProject - 11 error(s), 2 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Any tips? Thank you! Cheers, Alex ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16887#16887 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

