Hi all,
    Have somebody heard of osgEdit.I am using WindowsXP  with compiled edition of openscenegaph 1.0. I have the GTK package "gtk-win32-devel-2.8.18-rc1.exe" . I used Visual Studio 2003 to compilate osgEdit.But now i have some problems.
    The compilation result is bellow,here,i only list one for example:

osgedit error LNK2001: ?????????????????? "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall osg::FragmentProgram::getFragmentProgram(void)const " ([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@XZ)
     .............
osgedit fatal error LNK1120: 30 ????????????????????


     As we can see,all the error is link error.Let us use above error for example.Obviously,this eoor is because the program can not fine the correct function getFragmentProgram implemation .So i see the OSG1.0 code,and i find this function:
    
D:\OSG_OP_OT-1.0\OpenSceneGraph\include\osg\FragmentProgram
        inline GLuint& getFragmentProgramID(unsigned int contextID) const
        {
            return _fragmentProgramIDList[contextID];
        }     
    
      In osgEdit0.6.1 ,this function appears here:
ComFragmentProgram.cc

ComFragmentProgram::ComFragmentProgram(osg::FragmentProgram *node,
           std::string program) {
    this->affected=node;
    this->program_old = node->getFragmentProgram();
    this->program_new = program;
}     

      Now ,we can see the problem,when getFragmentProgram is invloved ,this have no parameter,but in OSG1.0 osg.dll, there is 1 parameter.
     
      So what is the correct version of OSG which matches the osgEdit?

Thanks in advance.
With Regards.
 







美 女 都 想 要 些 什 么 ( 图 ) .
绝 对 真 实 ! 老 婆 昨 晚 很 另 类 , 大 家 看 看 她 是 啥 样 ( 组 图 )
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to