Hi Pedro,

Have you added the core osg libraries to you link line?  Are the osg
libraries built OK and on your paths?

Robert.

On Jan 2, 2008 2:06 PM, Pedro José Muñoz Martínez
<[EMAIL PROTECTED]> wrote:
>
>  Hello all,
> I am trying to load Images in my application and it compiles ok but when
> linking it appears the following errors:
>
>   Creating library ../bin/ExerciseImpl.lib and object
> ../bin/ExerciseImpl.exp
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual void __thiscall
> osg::Texture::compileGLObjects(class osg::State &)const "
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) protected: virtual void __thiscall
> osg::Texture2D::computeInternalFormat(void)const "
> ([EMAIL PROTECTED]@osg@@MBEXXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) protected: virtual void __thiscall
> osg::Texture2D::allocateMipmap(class osg::State &)const "
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual int __thiscall
> osg::Texture2D::getTextureDepth(void)const "
> ([EMAIL PROTECTED]@osg@@UBEHXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual int __thiscall
> osg::Texture2D::getTextureHeight(void)const "
> ([EMAIL PROTECTED]@osg@@UBEHXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual void __thiscall
> osg::Object::computeDataVariance(void)"
> ([EMAIL PROTECTED]@osg@@UAEXXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual int __thiscall
> osg::Texture2D::getTextureWidth(void)const "
> ([EMAIL PROTECTED]@osg@@UBEHXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual unsigned int __thiscall
> osg::Texture2D::getNumImages(void)const "
> ([EMAIL PROTECTED]@osg@@UBEIXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual class osg::Image const * __thiscall
> osg::Texture2D::getImage(unsigned int)const "
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@[EMAIL PROTECTED])
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual class osg::Image * __thiscall
> osg::Texture2D::getImage(unsigned int)"
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@[EMAIL PROTECTED])
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual void __thiscall
> osg::Texture2D::setImage(unsigned int,class osg::Image *)"
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual unsigned int __thiscall
> osg::Texture2D::getTextureTarget(void)const "
> ([EMAIL PROTECTED]@osg@@UBEIXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual enum osg::StateAttribute::Type
> __thiscall osg::Texture2D::getType(void)const "
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@[EMAIL PROTECTED])
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual char const * __thiscall
> osg::Texture2D::className(void)const "
> ([EMAIL PROTECTED]@osg@@UBEPBDXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual char const * __thiscall
> osg::Texture2D::libraryName(void)const "
> ([EMAIL PROTECTED]@osg@@UBEPBDXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual bool __thiscall
> osg::Texture2D::isSameKindAs(class osg::Object const *)const "
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual class osg::Object * __thiscall
> osg::Texture2D::clone(class osg::CopyOp const &)const "
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) class osg::Image * __cdecl osgDB::readImageFile(class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> > const &,class osgDB::ReaderWriter::Options const *)"
> ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL 
> PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]@1@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual class osg::Object * __thiscall
> osg::Texture2D::cloneType(void)const "
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@XZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual bool __thiscall
> osg::StateAttribute::checkValidityOfAssociatedModes(class osg::State &)const
> "
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: class osgDB::ReaderWriter::Options *
> __thiscall osgDB::Registry::getOptions(void)"
> ([EMAIL PROTECTED]@osgDB@@[EMAIL PROTECTED]@[EMAIL PROTECTED])
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual bool __thiscall
> osg::Texture::getModeUsage(struct osg::StateAttribute::ModeUsage &)const "
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@2@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: __thiscall osg::Texture2D::Texture2D(void)"
> ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual bool __thiscall
> osg::Texture::isTextureAttribute(void)const "
> ([EMAIL PROTECTED]@osg@@UBE_NXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual unsigned int __thiscall
> osg::StateAttribute::getMember(void)const "
> ([EMAIL PROTECTED]@osg@@UBEIXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual void __thiscall
> osg::Texture::resizeGLObjectBuffers(unsigned int)"
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED])
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual void __thiscall
> osg::Texture::releaseGLObjects(class osg::State *)const "
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> osg::Referenced::unref(void)const " ([EMAIL PROTECTED]@osg@@QBEXXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> osg::Texture2D::setImage(class osg::Image *)"
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: static class osgDB::Registry * __cdecl
> osgDB::Registry::instance(bool)"
> ([EMAIL PROTECTED]@osgDB@@[EMAIL PROTECTED]@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual int __thiscall
> osg::Texture2D::compare(class osg::StateAttribute const &)const "
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> osg::Referenced::ref(void)const " ([EMAIL PROTECTED]@osg@@QBEXXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) protected: virtual __thiscall
> osg::Texture2D::~Texture2D(void)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual void __thiscall
> osg::Referenced::setThreadSafeRefUnref(bool)"
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED])
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual void __thiscall
> osg::Texture2D::apply(class osg::State &)const "
> ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@@Z)
> 1>../bin/ExerciseImpl.dll : fatal error LNK1120: 35 unresolved externals
>
>
> And I don´t know how can I fix this. I wonder if you could help me. Thanks
> in advance.
>
>
>
> ________________________________
> Todo ruedas: información práctica y todo el glamour del mundo del motor. MSN
> Estilo y Tendencias
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to