Hi everybody,

I'm very new to all of this, and I'm studying some simple examples to understand OSG. It seems to me that using #include <osgDB/ReadFile> gives some problems with outputting messages (std:err for example). I have this code (left out all OSG related stuff because it's irrelevant, commenting out the "std:cerr" line gets rid of the error):

#include <iostream>
#include <osgDB/ReadFile>
#include <osgUtil/Optimizer>
#include <osgProducer/Viewer>
int main (int argc, char* argv[])
{
    std::cerr << "Usage: ";
}

And I'm getting this link error:

pyramide.obj : error LNK2001: unresolved external symbol "public: class std::basic_ostream<char,struct std::char_traits<char> > * __thiscall std::basic_ios<char,struct std::char_traits<char> >::tie(void)const " ([EMAIL PROTECTED]@[EMAIL PROTECTED]@std@@@std@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@@[EMAIL PROTECTED])

pyramide.obj : error LNK2001: unresolved external symbol "public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@std@@@std@@$$FQAEXXZ)

pyramide.obj : error LNK2001: unresolved external symbol "public: char __thiscall std::basic_ios<char,struct std::char_traits<char> >::fill(void)const " ([EMAIL PROTECTED]@[EMAIL PROTECTED]@std@@@std@@$$FQBEDXZ)

D:\OSG Probeersels\Pyramide\Release\Pyramide.exe : fatal error LNK1120: 3 unresolved externals

I've included all lib files from the OSG lib dir. Can anyone tell me what's wrong here?

// Jan

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to