On 7/17/07, Jean-Sébastien Guay <[EMAIL PROTECTED]> wrote:
Hi Robert,
> Oopps... a case bleery eyed checked in at the end of the day.... now
> fixed and checked in.
Seems to compile but now I get this linker error:
osgterrain.obj : error LNK2019: unresolved external symbol "public:
__thiscall osgUtil::GLObjectsOperation::GLObjectsOperation(class
osg::Node *,unsigned int)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]) referenced in
function "public: virtual void __thiscall
MasterOperation::operator()(class osg::Object *)"
(??RMasterOperation@@[EMAIL PROTECTED]@@@Z)
Seems you're missing the OSGUTIL_EXPORT in the class
GLObjectsOperation declaration in the osgUtil::GLObjectsVisitor header.
Once that's fixed it compiles and links correctly. Yeah, I know, damn
Windows... :-)
I'm having the same linker problem, but OSGUTIL_EXPORT is there.
Here's the first few lines of the header:
#ifndef OSGUTIL_GLOBJECTSVISITOR
#define OSGUTIL_GLOBJECTSVISITOR 1
#include <osg/NodeVisitor>
#include <osg/Geode>
#include <osg/State>
#include <osgUtil/Export>
namespace osgUtil {
/** Visitor for traversing scene graph and setting each
osg::Drawable's _useDisplayList flag,
* with option to immediately compile osg::Drawable OpenGL Display lists and
* osg::StateAttribute's.
*/
class OSGUTIL_EXPORT GLObjectsVisitor : public osg::NodeVisitor
What gives? Everythng compiles, but I'm getting the same linker error as you.
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/