[osg-users] (no subject)

Robert Osfield robert.osfield at gmail.com
Wed Jan 2 08:30:53 PST 2008


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
<z_cb_kaiser at hotmail.com> 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 "
> (__imp_?compileGLObjects at Texture@osg@@UBEXAAVState at 2@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) protected: virtual void __thiscall
> osg::Texture2D::computeInternalFormat(void)const "
> (__imp_?computeInternalFormat at Texture2D@osg@@MBEXXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) protected: virtual void __thiscall
> osg::Texture2D::allocateMipmap(class osg::State &)const "
> (__imp_?allocateMipmap at Texture2D@osg@@MBEXAAVState at 2@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual int __thiscall
> osg::Texture2D::getTextureDepth(void)const "
> (__imp_?getTextureDepth at Texture2D@osg@@UBEHXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual int __thiscall
> osg::Texture2D::getTextureHeight(void)const "
> (__imp_?getTextureHeight at Texture2D@osg@@UBEHXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual void __thiscall
> osg::Object::computeDataVariance(void)"
> (__imp_?computeDataVariance at Object@osg@@UAEXXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual int __thiscall
> osg::Texture2D::getTextureWidth(void)const "
> (__imp_?getTextureWidth at Texture2D@osg@@UBEHXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual unsigned int __thiscall
> osg::Texture2D::getNumImages(void)const "
> (__imp_?getNumImages at Texture2D@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 "
> (__imp_?getImage at Texture2D@osg@@UBEPBVImage at 2@I at Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual class osg::Image * __thiscall
> osg::Texture2D::getImage(unsigned int)"
> (__imp_?getImage at Texture2D@osg@@UAEPAVImage at 2@I at Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual void __thiscall
> osg::Texture2D::setImage(unsigned int,class osg::Image *)"
> (__imp_?setImage at Texture2D@osg@@UAEXIPAVImage at 2@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual unsigned int __thiscall
> osg::Texture2D::getTextureTarget(void)const "
> (__imp_?getTextureTarget at Texture2D@osg@@UBEIXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual enum osg::StateAttribute::Type
> __thiscall osg::Texture2D::getType(void)const "
> (__imp_?getType at Texture2D@osg@@UBE?AW4Type at StateAttribute@2 at XZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual char const * __thiscall
> osg::Texture2D::className(void)const "
> (__imp_?className at Texture2D@osg@@UBEPBDXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual char const * __thiscall
> osg::Texture2D::libraryName(void)const "
> (__imp_?libraryName at Texture2D@osg@@UBEPBDXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual bool __thiscall
> osg::Texture2D::isSameKindAs(class osg::Object const *)const "
> (__imp_?isSameKindAs at Texture2D@osg@@UBE_NPBVObject at 2@@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 "
> (__imp_?clone at Texture2D@osg@@UBEPAVObject at 2@ABVCopyOp at 2@@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 *)"
> (__imp_?readImageFile at osgDB@@YAPAVImage at osg@@ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@PBVOptions at ReaderWriter@1@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual class osg::Object * __thiscall
> osg::Texture2D::cloneType(void)const "
> (__imp_?cloneType at Texture2D@osg@@UBEPAVObject at 2@XZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual bool __thiscall
> osg::StateAttribute::checkValidityOfAssociatedModes(class osg::State &)const
> "
> (__imp_?checkValidityOfAssociatedModes at StateAttribute@osg@@UBE_NAAVState at 2@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: class osgDB::ReaderWriter::Options *
> __thiscall osgDB::Registry::getOptions(void)"
> (__imp_?getOptions at Registry@osgDB@@QAEPAVOptions at ReaderWriter@2 at XZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual bool __thiscall
> osg::Texture::getModeUsage(struct osg::StateAttribute::ModeUsage &)const "
> (__imp_?getModeUsage at Texture@osg@@UBE_NAAUModeUsage at StateAttribute@2@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: __thiscall osg::Texture2D::Texture2D(void)"
> (__imp_??0Texture2D at osg@@QAE at XZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual bool __thiscall
> osg::Texture::isTextureAttribute(void)const "
> (__imp_?isTextureAttribute at Texture@osg@@UBE_NXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual unsigned int __thiscall
> osg::StateAttribute::getMember(void)const "
> (__imp_?getMember at StateAttribute@osg@@UBEIXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual void __thiscall
> osg::Texture::resizeGLObjectBuffers(unsigned int)"
> (__imp_?resizeGLObjectBuffers at Texture@osg@@UAEXI at Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual void __thiscall
> osg::Texture::releaseGLObjects(class osg::State *)const "
> (__imp_?releaseGLObjects at Texture@osg@@UBEXPAVState at 2@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> osg::Referenced::unref(void)const " (__imp_?unref at Referenced@osg@@QBEXXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> osg::Texture2D::setImage(class osg::Image *)"
> (__imp_?setImage at Texture2D@osg@@QAEXPAVImage at 2@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: static class osgDB::Registry * __cdecl
> osgDB::Registry::instance(bool)"
> (__imp_?instance at Registry@osgDB@@SAPAV12 at _N@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual int __thiscall
> osg::Texture2D::compare(class osg::StateAttribute const &)const "
> (__imp_?compare at Texture2D@osg@@UBEHABVStateAttribute at 2@@Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: void __thiscall
> osg::Referenced::ref(void)const " (__imp_?ref at Referenced@osg@@QBEXXZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) protected: virtual __thiscall
> osg::Texture2D::~Texture2D(void)" (__imp_??1Texture2D at osg@@MAE at XZ)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual void __thiscall
> osg::Referenced::setThreadSafeRefUnref(bool)"
> (__imp_?setThreadSafeRefUnref at Referenced@osg@@UAEX_N at Z)
> 1>prueba.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) public: virtual void __thiscall
> osg::Texture2D::apply(class osg::State &)const "
> (__imp_?apply at Texture2D@osg@@UBEXAAVState at 2@@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 at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


More information about the osg-users mailing list