Hi Cesar,

I can't help you much, I don't work under Windows.  You certainly
shouldn't need to link each symbole seperately.  Lots of others use
the OSG under Windows using the VS 7.x and some even 8.0 without
problem, so it really should be just an issue of sorting out your
build and application build options.

Please use the OSG examples as a guide.

Robert.

On 8/1/06, Cesar Ismael Mendoza <[EMAIL PROTECTED]> wrote:
Robert,

osgSim is built, and I have included the osgSim path among the library folders 
for the project.  However, the project doesn't even seem to recognise that it 
is there; I temporarily renamed the osgSim library files, rebuilt the project 
and got the exact same errors.

The log file from .NET:

------ Build started: Project: OSGExp, Configuration: Release Win32 ------

Linking...
   Creating library ./OSGExp.lib and object ./OSGExp.exp
OSGHelpers.obj : error LNK2001: unresolved external symbol "public: virtual class 
osg::BoundingSphere __thiscall osgSim::Impostor::computeBound(void)const " ([EMAIL 
PROTECTED]@osgSim@@[EMAIL PROTECTED]@@XZ)
OSGHelpers.obj : error LNK2001: unresolved external symbol "public: virtual void 
__thiscall osgSim::Impostor::traverse(class osg::NodeVisitor &)" ([EMAIL 
PROTECTED]@osgSim@@[EMAIL PROTECTED]@@@Z)
OSGHelpers.obj : error LNK2001: unresolved external symbol "public: virtual void 
__thiscall osgSim::Impostor::accept(class osg::NodeVisitor &)" ([EMAIL 
PROTECTED]@osgSim@@[EMAIL PROTECTED]@@@Z)
OSGHelpers.obj : error LNK2001: unresolved external symbol "public: virtual char 
const * __thiscall osgSim::Impostor::className(void)const " ([EMAIL 
PROTECTED]@osgSim@@UBEPBDXZ)
OSGHelpers.obj : error LNK2001: unresolved external symbol "public: virtual char 
const * __thiscall osgSim::Impostor::libraryName(void)const " ([EMAIL 
PROTECTED]@osgSim@@UBEPBDXZ)
OSGHelpers.obj : error LNK2001: unresolved external symbol "public: virtual bool 
__thiscall osgSim::Impostor::isSameKindAs(class osg::Object const *)const " ([EMAIL 
PROTECTED]@osgSim@@[EMAIL PROTECTED]@@@Z)
OSGHelpers.obj : error LNK2001: unresolved external symbol "public: virtual class 
osg::Object * __thiscall osgSim::Impostor::clone(class osg::CopyOp const &)const " 
([EMAIL PROTECTED]@osgSim@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@@Z)
OSGHelpers.obj : error LNK2001: unresolved external symbol "public: virtual class 
osg::Object * __thiscall osgSim::Impostor::cloneType(void)const " ([EMAIL 
PROTECTED]@osgSim@@[EMAIL PROTECTED]@@XZ)
OSGHelpers.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void 
__thiscall osgSim::Impostor::setImpostorThresholdToBound(float)" ([EMAIL PROTECTED]@osgSim@@[EMAIL 
PROTECTED]) referenced in function "private: class osg::ref_ptr<class osg::Group> __thiscall 
OSGExp::createImpostorFromHelperObject(class osg::Group *,class INode *,class Object *,int)" ([EMAIL 
PROTECTED]@@[EMAIL PROTECTED]@osg@@@osg@@[EMAIL PROTECTED]@PAVINode@@PAVObject@@[EMAIL PROTECTED])
OSGHelpers.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall 
osgSim::Impostor::Impostor(void)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function 
"private: class osg::ref_ptr<class osg::Group> __thiscall 
OSGExp::createImpostorFromHelperObject(class osg::Group *,class INode *,class Object *,int)" ([EMAIL 
PROTECTED]@@[EMAIL PROTECTED]@osg@@@osg@@[EMAIL PROTECTED]@PAVINode@@PAVObject@@[EMAIL PROTECTED])
OSGHelpers.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: 
virtual __thiscall osgSim::Impostor::~Impostor(void)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) 
referenced in function "protected: virtual void * __thiscall osgSim::Impostor::`scalar 
deleting destructor'(unsigned int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
..\..\bin\OSGExp.dle : fatal error LNK1120: 11 unresolved externals

It looks as though I need to either force .NET to link each individual symbol, or I 
need to fix up some #include<> statements in the code.  However, I am not 
familiar with .NET as a development environment, so I would rather do the second.

>On 7/31/06, Robert Osfield
<[EMAIL PROTECTED]> wrote:

>Are you linking to osgSim?  Is osgSim built?

>On 7/31/06, Cesar Ismael Mendoza <[EMAIL PROTECTED]> wrote:
>Hi all,

>Cesar Mendoza again.  I managed to fix the previous problem I had by using a 
static_cast<> on the offending line of code.  Why it wouldn't compile without it 
after having done so previously is still a mystery.

>The code compiles, but I now have the problem of unresolved external symbol 
errors for symbols in the osgSim::Impostor library.

>
> I had some compilation errors before due to the code referring to 
osg::Impostor, all instances of which I changed to osgSim::Impostor until the code 
compiled.  Now, however, the project does not seem to want to link to the symbols 
in the osgSim library, despite the library path being present in the external 
library folders option in the linker.
>
> What could be causing this problem and is there any way to fix it?
>
> Cesar Mendoza
> Student Electrical Engineer
> Project: Virtual Reality Experiment using OpenSceneGraph
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

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

Reply via email to